Skip to content

Commit

Permalink
Also adding a step to clean up resources so we have free space
Browse files Browse the repository at this point in the history
  • Loading branch information
amaldonadomat committed May 2, 2024
1 parent 507ddcf commit 8720189
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/deploy-api-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,15 @@ jobs:
docker-compose rm -f
docker-compose build --no-cache
docker-compose up -d
- name: Cleanup unused docker images, volumes and build cache
uses: appleboy/[email protected]
with:
host: ${{ secrets.DEPLOY_HOST_DNS }}
username: ${{ secrets.DEPLOY_USERNAME }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
script: |
docker container prune -f
docker image prune -f
docker volume prune -f
docker builder prune -f

0 comments on commit 8720189

Please sign in to comment.