@@ -285,7 +285,9 @@ jobs:
285285 cache-to : type=inline
286286
287287 - name : Tag latest locally
288- run : docker tag ${{ steps.build_base.outputs.imageid }} aminya/${{ matrix.container.image }}:latest
288+ run : |
289+ docker pull aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}@${{ steps.build_base.outputs.imageid }}
290+ docker tag aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}:latest
289291
290292 - name : Push latest to Docker Hub
291293 if : ${{ github.event_name != 'pull_request' && matrix.container.distro != 'ubuntu' }}
@@ -313,7 +315,9 @@ jobs:
313315 cache-to : type=inline
314316
315317 - name : Tag latest locally
316- run : docker tag ${{ steps.build_llvm.outputs.imageid }} aminya/${{ matrix.container.image }}-llvm:latest
318+ run : |
319+ docker pull aminya/${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}@${{ steps.build_llvm.outputs.imageid }}
320+ docker tag aminya/${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}-llvm:latest
317321
318322 - name : Push latest to Docker Hub
319323 if : ${{ github.event_name != 'pull_request' && matrix.container.distro != 'ubuntu' }}
@@ -351,7 +355,9 @@ jobs:
351355 cache-to : type=inline
352356
353357 - name : Tag latest locally
354- run : docker tag ${{ steps.build_gcc.outputs.imageid }} aminya/${{ matrix.container.image }}-gcc:latest
358+ run : |
359+ docker pull aminya/${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}@${{ steps.build_gcc.outputs.imageid }}
360+ docker tag aminya/${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}-gcc:latest
355361
356362 - name : Push latest to Docker Hub
357363 if : ${{ github.event_name != 'pull_request' && matrix.container.distro != 'ubuntu' }}
@@ -390,7 +396,9 @@ jobs:
390396 cache-to : type=inline
391397
392398 - name : Tag latest locally
393- run : docker tag ${{ steps.build_mingw.outputs.imageid }} aminya/${{ matrix.container.image }}-mingw:latest
399+ run : |
400+ docker pull aminya/${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}@${{ steps.build_mingw.outputs.imageid }}
401+ docker tag aminya/${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}-mingw:latest
394402
395403 - name : Push latest to Docker Hub
396404 if : ${{ github.event_name != 'pull_request' && matrix.container.distro != 'ubuntu' }}
0 commit comments