Skip to content

Commit

Permalink
idiot
Browse files Browse the repository at this point in the history
  • Loading branch information
loftwah committed Jul 13, 2024
1 parent f6ffde7 commit f7bdc1f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@ jobs:
echo "${{ secrets.GH_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
GITHUB_TOKEN=${{ secrets.GH_PAT }} docker buildx build --secret id=GITHUB_TOKEN -t ghcr.io/loftwah-demo/pirate_app/pirateapp:latest --push .
- name: Deploy to droplet
uses: appleboy/ssh-action@master
with:
host: 170.64.189.40
username: root
key: ${{ secrets.DROPLET_SSH_PRIVATE_KEY }}
script: |
docker-compose -f /root/docker-compose.prod.yml --env-file /root/.env down
docker-compose -f /root/docker-compose.prod.yml --env-file /root/.env pull
docker-compose -f /root/docker-compose.prod.yml --env-file /root/.env up -d
docker compose -f /root/docker-compose.prod.yml --env-file /root/.env down
docker compose -f /root/docker-compose.prod.yml --env-file /root/.env pull
docker compose -f /root/docker-compose.prod.yml --env-file /root/.env up -d

0 comments on commit f7bdc1f

Please sign in to comment.