@@ -273,6 +273,7 @@ jobs:
273
273
password : ${{ secrets.DOCKERHUB_TOKEN }}
274
274
275
275
- name : Build setup-cpp-${{matrix.container.distro }}
276
+ id : build_base
276
277
uses : docker/build-push-action@v6
277
278
with :
278
279
context : .
@@ -284,7 +285,7 @@ jobs:
284
285
cache-to : type=inline
285
286
286
287
- name : Tag latest locally
287
- run : docker tag docker.io/aminya/ ${{ matrix.container.image }}:${{ matrix.container.tag }}-${{ steps.platform .outputs.suffix }} aminya/${{ matrix.container.image }}:latest
288
+ run : docker tag ${{ steps.build_base .outputs.imageid }} aminya/${{ matrix.container.image }}:latest
288
289
289
290
- name : Push latest to Docker Hub
290
291
if : ${{ github.event_name != 'pull_request' && matrix.container.distro != 'ubuntu' }}
@@ -300,6 +301,7 @@ jobs:
300
301
readme-filepath : ./README_DOCKER.md
301
302
302
303
- name : Build setup-cpp-${{matrix.container.distro }}-llvm
304
+ id : build_llvm
303
305
uses : docker/build-push-action@v6
304
306
with :
305
307
context : .
@@ -311,7 +313,7 @@ jobs:
311
313
cache-to : type=inline
312
314
313
315
- name : Tag latest locally
314
- run : docker tag docker.io/aminya/ ${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}-${{ steps.platform .outputs.suffix }} aminya/${{ matrix.container.image }}-llvm:latest
316
+ run : docker tag ${{ steps.build_llvm .outputs.imageid }} aminya/${{ matrix.container.image }}-llvm:latest
315
317
316
318
- name : Push latest to Docker Hub
317
319
if : ${{ github.event_name != 'pull_request' && matrix.container.distro != 'ubuntu' }}
@@ -337,6 +339,7 @@ jobs:
337
339
tags : aminya/test-${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}
338
340
339
341
- name : Build setup-cpp-${{matrix.container.distro }}-gcc
342
+ id : build_gcc
340
343
uses : docker/build-push-action@v6
341
344
with :
342
345
context : .
@@ -348,7 +351,7 @@ jobs:
348
351
cache-to : type=inline
349
352
350
353
- name : Tag latest locally
351
- run : docker tag docker.io/aminya/ ${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}-${{ steps.platform .outputs.suffix }} aminya/${{ matrix.container.image }}-gcc:latest
354
+ run : docker tag ${{ steps.build_gcc .outputs.imageid }} aminya/${{ matrix.container.image }}-gcc:latest
352
355
353
356
- name : Push latest to Docker Hub
354
357
if : ${{ github.event_name != 'pull_request' && matrix.container.distro != 'ubuntu' }}
@@ -374,6 +377,7 @@ jobs:
374
377
tags : aminya/test-${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}
375
378
376
379
- name : Build setup-cpp-${{matrix.container.distro }}-mingw
380
+ id : build_mingw
377
381
if : ${{ !contains(matrix.container.distro, 'fedora') }}
378
382
uses : docker/build-push-action@v6
379
383
with :
@@ -386,7 +390,7 @@ jobs:
386
390
cache-to : type=inline
387
391
388
392
- name : Tag latest locally
389
- run : docker tag docker.io/aminya/ ${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}-${{ steps.platform .outputs.suffix }} aminya/${{ matrix.container.image }}-mingw:latest
393
+ run : docker tag ${{ steps.build_mingw .outputs.imageid }} aminya/${{ matrix.container.image }}-mingw:latest
390
394
391
395
- name : Push latest to Docker Hub
392
396
if : ${{ github.event_name != 'pull_request' && matrix.container.distro != 'ubuntu' }}
0 commit comments