From bf246141b516b0a7adb13751c08e10c43ca430a2 Mon Sep 17 00:00:00 2001 From: David Badura Date: Tue, 17 Feb 2026 13:14:43 +0100 Subject: [PATCH] fix docker build cache --- .github/workflows/ci.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fadab12..0236dea 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -69,8 +69,10 @@ jobs: platforms: ${{ matrix.platform.platform }} labels: ${{ steps.meta.outputs.labels }} cache-from: | - type=gha,scope=ci-cache - cache-to: type=gha,mode=max,scope=ci-cache + type=gha,scope=ci-${{ matrix.version }}-${{ matrix.platform.id }} + type=gha,scope=release-${{ matrix.version }}-${{ matrix.platform.id }} + cache-to: | + type=gha,mode=max,scope=ci-${{ matrix.version }}-${{ matrix.platform.id }} push: false build-args: | VERSION=${{ matrix.version }} @@ -85,9 +87,10 @@ jobs: platforms: ${{ matrix.platform.platform }} labels: ${{ steps.meta.outputs.labels }} cache-from: | - type=gha,scope=ci-cache - type=gha,scope=release-cache - cache-to: type=gha,mode=max,scope=release-cache + type=gha,scope=ci-${{ matrix.version }}-${{ matrix.platform.id }} + type=gha,scope=release-${{ matrix.version }}-${{ matrix.platform.id }} + cache-to: | + type=gha,mode=max,scope=release-${{ matrix.version }}-${{ matrix.platform.id }} outputs: | type=image,name=${{ env.IMAGE_NAME }},push-by-digest=true,name-canonical=true,push=true build-args: |