diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 4894b25..aaa1e9c 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -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 \ No newline at end of file + 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 \ No newline at end of file