Skip to content

Commit

Permalink
docker prune before updating services (#480)
Browse files Browse the repository at this point in the history
### Related issues

- Closes #479
  • Loading branch information
glass-ships authored Nov 16, 2023
1 parent 606df24 commit 08eb503
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-and-deploy-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ jobs:
version: ">= 447.0.0"

- name: "Update API Service"
run: gcloud compute ssh --zone us-central1-a monarch-v3-dev-manager -- sudo docker service update monarch-v3_api --with-registry-auth --update-order=start-first --force --image us-central1-docker.pkg.dev/monarch-initiative/monarch-api/monarch-api:${{ github.sha }}
run: |
gcloud compute ssh --zone us-central1-a monarch-v3-dev-manager -- sudo docker system prune -f
gcloud compute ssh --zone us-central1-a monarch-v3-dev-manager -- sudo docker service update monarch-v3_api --with-registry-auth --update-order=start-first --force --image us-central1-docker.pkg.dev/monarch-initiative/monarch-api/monarch-api:${{ github.sha }}
- name: "Update UI Service"
run: gcloud compute ssh --zone us-central1-a monarch-v3-dev-manager -- sudo docker service update monarch-v3_nginx --with-registry-auth --update-order=start-first --force --image us-central1-docker.pkg.dev/monarch-initiative/monarch-api/monarch-ui:${{ github.sha }}
run: |
gcloud compute ssh --zone us-central1-a monarch-v3-dev-manager -- sudo docker system prune -f
gcloud compute ssh --zone us-central1-a monarch-v3-dev-manager -- sudo docker service update monarch-v3_nginx --with-registry-auth --update-order=start-first --force --image us-central1-docker.pkg.dev/monarch-initiative/monarch-api/monarch-ui:${{ github.sha }}

0 comments on commit 08eb503

Please sign in to comment.