From 7f41893da443ec5d7e895bd3e084d742889c4b4f Mon Sep 17 00:00:00 2001 From: mauwii Date: Tue, 7 Feb 2023 07:40:18 +0100 Subject: [PATCH] set scope for caches --- .github/workflows/build-container.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index 646ed7c03e..e2c5be27c2 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -88,10 +88,8 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: PIP_EXTRA_INDEX_URL=${{ matrix.pip-extra-index-url }} - cache-from: | - type=gha - ghcr.io/${{ github.repository }}:main-${{ matrix.flavor }} - cache-to: type=gha,mode=max + cache-from: type=gha,scope=$GITHUB_REF_NAME-${{ matrix.flavor }} + cache-to: type=gha,mode=max,scope=$GITHUB_REF_NAME-${{ matrix.flavor }} - name: Docker Hub Description if: github.event_name != 'pull_request' && vars.DOCKERHUB_REPOSITORY != ''