[CI] Load and save the docker image through the image cache

This commit is contained in:
Lukas Brübach 2026-10-11 18:17:17 +02:00
parent 1eeb8f3d6d
commit 58ccc60638

View file

@ -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'