ci: use docker import-export instead of load-save

To avoid:

  open /var/lib/docker/tmp/docker-import-2294564057/repositories: no such file or directory

observed in itk-wasm.
This commit is contained in:
Matt McCormick 2024-03-03 17:33:37 -05:00 committed by Jonas Vautherin
parent 50baccd0fa
commit 3ac4aed3aa

View File

@ -33,7 +33,7 @@ jobs:
- name: archive base - name: archive base
run: | run: |
mkdir -p cache mkdir -p cache
docker save dockcross/base:latest | xz -e9 -T0 > ./cache/base.tar.xz docker export dockcross/base:latest | xz -e9 -T0 > ./cache/base.tar.xz
- name: save base - name: save base
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
@ -1068,7 +1068,7 @@ jobs:
path: ./cache path: ./cache
- name: load base - name: load base
run: xz -d -k < ./cache/base.tar.xz | docker load run: xz -d -k < ./cache/base.tar.xz | docker import - dockcross/base:latest
- name: build - name: build
run: make ${{ matrix.arch_name.image }} run: make ${{ matrix.arch_name.image }}