From bf8bfdbb9a8160ca4268f5ca88110b50353a832e Mon Sep 17 00:00:00 2001 From: bkellam Date: Sat, 22 Feb 2025 15:32:46 -0800 Subject: [PATCH] use docker scopes to try and improve caching --- .github/workflows/staging-ghcr-public.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/staging-ghcr-public.yml b/.github/workflows/staging-ghcr-public.yml index d3f42904..4691c11c 100644 --- a/.github/workflows/staging-ghcr-public.yml +++ b/.github/workflows/staging-ghcr-public.yml @@ -1,4 +1,3 @@ - name: Publish to ghcr (staging) on: @@ -63,8 +62,10 @@ jobs: with: context: . labels: ${{ steps.meta.outputs.labels }} - cache-from: type=gha - cache-to: type=gha,mode=max + cache-from: | + type=gha,scope=${{ matrix.platform }} + cache-to: | + type=gha,mode=max,scope=${{ matrix.platform }} platforms: ${{ matrix.platform }} outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true build-args: |