Skip to content

Commit

Permalink
ci(docker): change docker command
Browse files Browse the repository at this point in the history
  • Loading branch information
anteqkois committed May 31, 2024
1 parent c8d15f2 commit e41eebc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/build-and-deploy-api-gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ jobs:
script: |
cd api.linkerry.com/
docker-compose pull
docker compose up --force-recreate --build -d
docker-compose up -d --no-deps --build api-gateway
- name: Clear DO container registry
run: doctl registry garbage-collection start
16 changes: 16 additions & 0 deletions .github/workflows/build-and-deploy-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,19 @@ jobs:
run: docker tag linkerry/web registry.digitalocean.com/linkerry/web:latest
- name: Push image to DO Container Registry
run: docker push registry.digitalocean.com/linkerry/web:latest
- name: Connect to VPS and refresh docker compose
uses: appleboy/[email protected]
with:
host: ${{ secrets.VPS_IP }}
username: root
key: ${{ secrets.SSH_PASSPHRASE_PRIVATE_KEY }}
passphrase: ${{ secrets.SSH_PASSPHRASE }}
port: 22
script: |
cd linkerry.com/
docker-compose pull
docker compose up --force-recreate --build -d
docker-compose up -d --no-deps --build api-gateway
- name: Clear DO container registry
run: doctl registry garbage-collection start

0 comments on commit e41eebc

Please sign in to comment.