Skip to content

Commit 8ed3641

Browse files
committed
ci: load the docker image after push
1 parent 555c4d7 commit 8ed3641

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,14 +279,14 @@ jobs:
279279
context: .
280280
file: ./dev/docker/ci/${{ matrix.container.distro }}.dockerfile
281281
push: ${{ github.event_name != 'pull_request' }}
282+
load: true
282283
platforms: ${{ matrix.platform }}
283284
tags: aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
284285
cache-from: type=registry,ref=aminya/${{ matrix.container.image }}:latest
285286
cache-to: type=inline
286287

287288
- name: Tag latest locally
288289
run: |
289-
docker pull aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}@${{ steps.build_base.outputs.imageid }}
290290
docker tag aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}:latest
291291
292292
- name: Push latest to Docker Hub
@@ -309,14 +309,14 @@ jobs:
309309
context: .
310310
file: ./dev/docker/ci/${{ matrix.container.distro }}-llvm.dockerfile
311311
push: ${{ github.event_name != 'pull_request' }}
312+
load: true
312313
platforms: ${{ matrix.platform }}
313314
tags: aminya/${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
314315
cache-from: type=registry,ref=aminya/${{ matrix.container.image }}-llvm:latest
315316
cache-to: type=inline
316317

317318
- name: Tag latest locally
318319
run: |
319-
docker pull aminya/${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}@${{ steps.build_llvm.outputs.imageid }}
320320
docker tag aminya/${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}-llvm:latest
321321
322322
- name: Push latest to Docker Hub
@@ -349,14 +349,14 @@ jobs:
349349
context: .
350350
file: ./dev/docker/ci/${{ matrix.container.distro }}-gcc.dockerfile
351351
push: ${{ github.event_name != 'pull_request' }}
352+
load: true
352353
platforms: ${{ matrix.platform }}
353354
tags: aminya/${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
354355
cache-from: type=registry,ref=aminya/${{ matrix.container.image }}-gcc:latest
355356
cache-to: type=inline
356357

357358
- name: Tag latest locally
358359
run: |
359-
docker pull aminya/${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}@${{ steps.build_gcc.outputs.imageid }}
360360
docker tag aminya/${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}-gcc:latest
361361
362362
- name: Push latest to Docker Hub
@@ -390,14 +390,14 @@ jobs:
390390
context: .
391391
file: ./dev/docker/ci/${{ matrix.container.distro }}-mingw.dockerfile
392392
push: ${{ github.event_name != 'pull_request' }}
393+
load: true
393394
platforms: ${{ matrix.platform }}
394395
tags: aminya/${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
395396
cache-from: type=registry,ref=aminya/${{ matrix.container.image }}-mingw:latest
396397
cache-to: type=inline
397398

398399
- name: Tag latest locally
399400
run: |
400-
docker pull aminya/${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}@${{ steps.build_mingw.outputs.imageid }}
401401
docker tag aminya/${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}-mingw:latest
402402
403403
- name: Push latest to Docker Hub

0 commit comments

Comments
 (0)