Skip to content

Commit 8b41eea

Browse files
committed
restore image
1 parent f4035dc commit 8b41eea

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,18 @@ jobs:
4242
mkdir /tmp/docker
4343
docker image save -o /tmp/docker/base-gdal${{ matrix.gdal-version }}.tar lambgeo/lambda:gdal${{ matrix.gdal-version }}
4444
45+
- name: Restore dependencies
46+
if: steps.cache-deps.outputs.cache-hit == 'true'
47+
run: |
48+
docker image load -i /tmp/docker/base-gdal${{ matrix.gdal-version }}.tar
49+
docker images
50+
4551
- name: Run Tests
4652
run: |
47-
docker run --rm lambgeo/lambda:gdal${{ matrix.gdal-version }} --volume ${{ github.workspace }}:/local sh -c "cd /local/tests && sh tests.sh"
53+
docker run \
54+
-v ${{ github.workspace }}:/local --rm \
55+
lambgeo/lambda:gdal${{ matrix.gdal-version }} \
56+
sh -c "cd /local/tests && sh tests.sh"
4857
4958
# - name: Push to DockerHub and Publish Layer
5059
# if: contains(github.ref, 'tags')

0 commit comments

Comments
 (0)