From bc529e591526e1a88793698636d590620e88fba0 Mon Sep 17 00:00:00 2001 From: ThePhaseless Date: Sun, 9 Aug 2026 19:45:44 +0200 Subject: [PATCH] fix(ci): use slice-free gha cache scopes for cross-job reuse - test job: scope x64 -> amd64 to match build matrix amd64 leg - build job: scope ${{ matrix.platform }} -> ${{ steps.vars.outputs.SURFIX }} (yields amd64/arm64), avoiding the gha backend's / path-separator bug that mangled scope=linux/arm64 and broke arm64 cache reuse test (amd64) and build-amd64 now share scope=amd64 so build reuses the app/base layers the test job cached earlier in the same run. build-arm64 gets a working scope=arm64 that persists across runs. --- .github/workflows/docker-publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 6180075..4a68e0b 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -65,9 +65,9 @@ jobs: with: context: . platforms: linux/amd64 - cache-from: type=gha,scope=x64 + cache-from: type=gha,scope=amd64 pull: true - cache-to: type=gha,mode=max,scope=x64 + cache-to: type=gha,mode=max,scope=amd64 target: test build: @@ -135,8 +135,8 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} platforms: ${{ matrix.platform }} - cache-from: type=gha,scope=${{ matrix.platform }} - cache-to: type=gha,mode=max,scope=${{ matrix.platform }} + cache-from: type=gha,scope=${{ steps.vars.outputs.SURFIX }} + cache-to: type=gha,mode=max,scope=${{ steps.vars.outputs.SURFIX }} build-args: | GITHUB_BUILD=true VERSION=${{ github.ref_type == 'tag' && github.ref_name || github.sha }}