diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index 17f689ec16..60aaf4780d 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -90,7 +90,7 @@ jobs: cache-from: | type=gha,scope=${{ github.ref_name }}-${{ matrix.flavor }} type=gha,scope=main-${{ matrix.flavor }} - cache-to: type=gha,mode=max,scope=main-${{ matrix.flavor }} + cache-to: type=gha,mode=max,scope=${{ github.ref_name }}-${{ matrix.flavor }} - name: Docker Hub Description if: github.ref == 'refs/heads/main' || github.ref == 'refs/tags/*' && vars.DOCKERHUB_REPOSITORY != ''