From 17873c66a03a056ade0a283b702b87d956202f30 Mon Sep 17 00:00:00 2001 From: makaveli10 Date: Mon, 19 Feb 2024 06:36:10 -0500 Subject: [PATCH] prune docker cache --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ee92e7..359d0b1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,7 +75,7 @@ jobs: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - + build-and-push-docker-cpu: needs: [run-tests, check-code-format] runs-on: ubuntu-22.04 @@ -102,13 +102,13 @@ jobs: tags: ghcr.io/makaveli10/whisperlive-cpu:latest build-and-push-docker-gpu: - needs: [run-tests, check-code-format] + needs: [run-tests, check-code-format, build-and-push-docker-cpu] timeout-minutes: 20 runs-on: ubuntu-22.04 if: github.event_name == 'push' && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main') steps: - uses: actions/checkout@v2 - + - name: Log in to GitHub Container Registry uses: docker/login-action@v1 with: @@ -116,6 +116,9 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GHCR_TOKEN }} + - name: Docker Prune + run: docker system prune -af + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1