[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 5b0af0484c
commit 384751a292

View file

@ -194,7 +194,14 @@ jobs:
- name: "Build ${{ matrix.distro }} ${{ matrix.version }} Docker image" - name: "Build ${{ matrix.distro }} ${{ matrix.version }} Docker image"
shell: bash 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" - name: "Build debug and test"
if: matrix.test != 'skip' if: matrix.test != 'skip'