Skip to content

Commit 4f484d7

Browse files
committed
do not rebuild
1 parent eb0d497 commit 4f484d7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
image-name: ['lambda', 'lambda2']
12-
gdal-version: [2.4, 3.1]
12+
gdal-version: [2.4, 3.1, 3.2]
1313
steps:
1414
- uses: actions/checkout@v2
1515
- name: Login to DockerHub
@@ -25,16 +25,17 @@ jobs:
2525
path: /tmp/docker
2626
key: ${{ matrix.image-name }}-${{ hashFiles(format('common/{0}/Dockerfile', matrix.image-name)) }}
2727

28-
- name: Restore base image
28+
- name: Restore Common image
2929
if: steps.common-cache.outputs.cache-hit == 'true'
3030
run: docker image load -i /tmp/docker/${{ matrix.image-name }}.tar
3131

32-
- name: Build base image
32+
- name: Build Common image
3333
run: docker build -f common/${{ matrix.image-name }}/Dockerfile -t ${{ matrix.image-name }}:build .
3434

35-
- name: Save base image in Cache
35+
- name: Build and Cache Common image
3636
if: steps.common-cache.outputs.cache-hit != 'true'
3737
run: |
38+
run: docker build -f common/${{ matrix.image-name }}/Dockerfile -t ${{ matrix.image-name }}:build .
3839
mkdir -p /tmp/docker
3940
docker image save -o /tmp/docker/${{ matrix.image-name }}.tar ${{ matrix.image-name }}:build
4041

0 commit comments

Comments
 (0)