Tests: fix docker image export for GitHub Action caching.
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Tue, 17 May 2022 07:27:24 +0200
changeset 3460 d3c95ae44750
parent 3459 69771a6ca4a6
child 3461 fb8c2fa0d8f0
Tests: fix docker image export for GitHub Action caching.
.github/workflows/run_tests_in_docker.yml
--- a/.github/workflows/run_tests_in_docker.yml	Mon May 16 21:40:44 2022 +0200
+++ b/.github/workflows/run_tests_in_docker.yml	Tue May 17 07:27:24 2022 +0200
@@ -37,12 +37,12 @@
       run: |
         cd beremiz/tests/tools/Docker/beremiz-sikuli
         ./build_docker_image.sh
-        docker export --output="/tmp/latest.tar" beremiz_sikuli
+        docker image save --output="/tmp/latest.tar" beremiz_sikuli
 
     - if: ${{ steps.cache-docker.outputs.cache-hit == true }}
       name: Re-use docker image
       run: |
-        docker load --input="/tmp/latest.tar" 
+        docker image load --input="/tmp/latest.tar" 
 
     - name: Create docker container
       run: |