Skip to content

Commit

Permalink
ci: add docker cleanup stage
Browse files Browse the repository at this point in the history
  • Loading branch information
Adibov committed Nov 30, 2023
1 parent a27cce5 commit ae34983
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,15 @@ jobs:
envs: SECRET_KEY,EMAIL_HOST_PASSWORD,ZIFY_AUTH
script: |
docker compose -f AAISS-2023/docker-compose.yml pull
docker compose -f AAISS-2023/docker-compose.yml up -d --force-recreate --no-build
docker compose -f AAISS-2023/docker-compose.yml up -d --force-recreate --no-build
- name: Cleanup docker images
uses: appleboy/ssh-action@master
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
with:
host: ${{ vars.VM_HOST }}
username: ${{ vars.VM_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
docker image prune -af

0 comments on commit ae34983

Please sign in to comment.