Skip to content

Commit

Permalink
Copy docker-compose.yml to droplet and run it from the correct path
Browse files Browse the repository at this point in the history
  • Loading branch information
omarciovsena committed May 17, 2024
1 parent b5e5939 commit 6b3afc1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ jobs:
fi
docker save $IMAGE_MONGO_ID | bzip2 | ssh root@${{ secrets.DROPLET_IP }} 'bzip2 -d | docker load'
- name: Transfer docker-compose.yml to DigitalOcean
run: |
scp docker-compose.yml root@${{ secrets.DROPLET_IP }}:/root/docker-compose.yml
- name: Deploy to DigitalOcean
run: |
ssh root@${{ secrets.DROPLET_IP }} "docker-compose -f /path/to/docker-compose.yml up -d"
ssh root@${{ secrets.DROPLET_IP }} "docker-compose -f /root/docker-compose.yml up -d"

0 comments on commit 6b3afc1

Please sign in to comment.