From 58ccc60638f571c61eb7325179571673fed12c5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Sun, 11 Oct 2026 18:17:17 +0200 Subject: [PATCH] [CI] Load and save the docker image through the image cache --- .github/workflows/desktop-build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/desktop-build.yml b/.github/workflows/desktop-build.yml index f426ecf20..89e66d097 100644 --- a/.github/workflows/desktop-build.yml +++ b/.github/workflows/desktop-build.yml @@ -202,7 +202,14 @@ jobs: - name: "Build ${{ matrix.distro }} ${{ matrix.version }} Docker image" shell: bash - run: source .ci/docker.sh --build + run: | + # --get/--save wire the $CACHE/image dir restored/saved above into the + # build: without them the image is rebuilt from scratch every run and + # the image cache saves nothing. Only persist on master; PR runs just + # reuse whatever the restore step found. + args=(--get --build) + [[ $GITHUB_REF == "refs/heads/master" ]] && args+=(--save) + source .ci/docker.sh "${args[@]}" - name: "Build debug and test" if: matrix.test != 'skip'