diff --git a/.github/workflows/deploy-api-client.yml b/.github/workflows/deploy-api-client.yml index 53c064f..65eae79 100644 --- a/.github/workflows/deploy-api-client.yml +++ b/.github/workflows/deploy-api-client.yml @@ -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/ssh-action@v1.0.3 + 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