From 9e33e5a04764570cd91b59a3d9c3ea34d015f481 Mon Sep 17 00:00:00 2001 From: Paul Abel <128620221+pdabelf5@users.noreply.github.com> Date: Tue, 13 Feb 2024 16:57:39 +0000 Subject: [PATCH] allow each image to have its own cache (#5080) --- .github/workflows/build-base-images.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-base-images.yml b/.github/workflows/build-base-images.yml index d43496d03d..29edd6e1af 100644 --- a/.github/workflows/build-base-images.yml +++ b/.github/workflows/build-base-images.yml @@ -93,8 +93,8 @@ jobs: with: file: build/Dockerfile context: "." - cache-from: type=gha - cache-to: type=gha,mode=max + cache-from: type=gha,scope=${{ matrix.image }} + cache-to: type=gha,scope=${{ matrix.image }},mode=max target: common tags: ${{ steps.meta.outputs.tags }} platforms: ${{ matrix.platforms }} @@ -159,8 +159,8 @@ jobs: with: file: build/Dockerfile context: "." - cache-from: type=gha - cache-to: type=gha,mode=max + cache-from: type=gha,scope=${{ matrix.image }} + cache-to: type=gha,scope=${{ matrix.image }},mode=max target: common tags: ${{ steps.meta.outputs.tags }} platforms: ${{ matrix.platforms }} @@ -246,8 +246,8 @@ jobs: with: file: build/Dockerfile context: "." - cache-from: type=gha - cache-to: type=gha,mode=max + cache-from: type=gha,scope=${{ matrix.image }}-${{ steps.nap_modules.outputs.modules }} + cache-to: type=gha,scope=${{ matrix.image }}-${{ steps.nap_modules.outputs.modules }},mode=max target: common tags: ${{ steps.meta.outputs.tags }} platforms: ${{ matrix.platforms }}