mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-06 01:53:25 -08:00
[CI] Load and save the docker image through the image cache
This commit is contained in:
parent
1eeb8f3d6d
commit
58ccc60638
1 changed files with 8 additions and 1 deletions
9
.github/workflows/desktop-build.yml
vendored
9
.github/workflows/desktop-build.yml
vendored
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue