From 20928cde683ba57a50cc0520df4e460d4c97df1b Mon Sep 17 00:00:00 2001 From: Simon Gerber Date: Tue, 24 Mar 2026 16:28:03 +0100 Subject: [PATCH] Use GHA cache from master branch when building container image for PR --- .github/workflows/container-image.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/container-image.yml b/.github/workflows/container-image.yml index 320caced..3199cbae 100644 --- a/.github/workflows/container-image.yml +++ b/.github/workflows/container-image.yml @@ -123,7 +123,9 @@ jobs: labels: ${{ steps.meta.outputs.labels }} annotations: ${{ steps.meta.outputs.annotations }} outputs: type=image,name=${{ env.GHCR_IMAGE }},push-by-digest=true,name-canonical=true,push=true,oci-mediatypes=true - cache-from: type=gha,scope=${{ github.repository }}-${{ github.ref_name }}-${{ matrix.platform.name }} + cache-from: | + type=gha,scope=${{ github.repository }}-${{ github.ref_name }}-${{ matrix.platform.name }} + type=gha,scope=${{ github.repository }}-master-${{ matrix.platform.name }} cache-to: type=gha,mode=max,scope=${{ github.repository }}-${{ github.ref_name }}-${{ matrix.platform.name }} build-args: | GITVERSION=${{ needs.get-version.outputs.gitversion }}