set scope for caches

This commit is contained in:
mauwii 2023-02-07 07:40:18 +01:00 committed by Matthias Wild
parent 42da4f57c2
commit 7f41893da4

View File

@ -88,10 +88,8 @@ jobs:
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
build-args: PIP_EXTRA_INDEX_URL=${{ matrix.pip-extra-index-url }} build-args: PIP_EXTRA_INDEX_URL=${{ matrix.pip-extra-index-url }}
cache-from: | cache-from: type=gha,scope=$GITHUB_REF_NAME-${{ matrix.flavor }}
type=gha cache-to: type=gha,mode=max,scope=$GITHUB_REF_NAME-${{ matrix.flavor }}
ghcr.io/${{ github.repository }}:main-${{ matrix.flavor }}
cache-to: type=gha,mode=max
- name: Docker Hub Description - name: Docker Hub Description
if: github.event_name != 'pull_request' && vars.DOCKERHUB_REPOSITORY != '' if: github.event_name != 'pull_request' && vars.DOCKERHUB_REPOSITORY != ''