54
54
if [[ "${{ github.ref_name }}" =~ ^refs/heads/ ]]; then
55
55
git config user.name "github-actions[bot]"
56
56
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
57
-
57
+
58
58
git add dist/
59
59
git commit -m "chore(build): update dist"
60
60
git push
@@ -267,7 +267,7 @@ jobs:
267
267
268
268
- name : Login to Docker Hub
269
269
uses : docker/login-action@v3
270
- if : ${{ github.event_name != 'pull_request' }}
270
+ if : ${{ github.event_name != 'pull_request' || contains(github.event.head_commit.message, '[push docker]') }}
271
271
with :
272
272
username : aminya
273
273
password : ${{ secrets.DOCKERHUB_TOKEN }}
@@ -278,7 +278,7 @@ jobs:
278
278
with :
279
279
context : .
280
280
file : ./dev/docker/ci/${{ matrix.container.distro }}.dockerfile
281
- push : ${{ github.event_name != 'pull_request' }}
281
+ push : ${{ github.event_name != 'pull_request' || contains(github.event.head_commit.message, '[push docker]') }}
282
282
load : true
283
283
platforms : ${{ matrix.platform }}
284
284
tags : aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
@@ -294,7 +294,7 @@ jobs:
294
294
run : docker push aminya/${{ matrix.container.image }}:latest
295
295
296
296
- name : Docker Readme for setup-cpp-${{matrix.container.distro }}
297
- if : ${{ github.event_name != 'pull_request' }}
297
+ if : ${{ github.event_name != 'pull_request' || contains(github.event.head_commit.message, '[push docker]') }}
298
298
uses : peter-evans/dockerhub-description@v4
299
299
with :
300
300
username : aminya
@@ -308,7 +308,7 @@ jobs:
308
308
with :
309
309
context : .
310
310
file : ./dev/docker/ci/${{ matrix.container.distro }}-llvm.dockerfile
311
- push : ${{ github.event_name != 'pull_request' }}
311
+ push : ${{ github.event_name != 'pull_request' || contains(github.event.head_commit.message, '[push docker]') }}
312
312
load : true
313
313
platforms : ${{ matrix.platform }}
314
314
tags : aminya/${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
@@ -324,7 +324,7 @@ jobs:
324
324
run : docker push aminya/${{ matrix.container.image }}-llvm:latest
325
325
326
326
- name : Docker Readme for setup-cpp-${{matrix.container.distro }}-llvm
327
- if : ${{ github.event_name != 'pull_request' }}
327
+ if : ${{ github.event_name != 'pull_request' || contains(github.event.head_commit.message, '[push docker]') }}
328
328
uses : peter-evans/dockerhub-description@v4
329
329
with :
330
330
username : aminya
@@ -348,7 +348,7 @@ jobs:
348
348
with :
349
349
context : .
350
350
file : ./dev/docker/ci/${{ matrix.container.distro }}-gcc.dockerfile
351
- push : ${{ github.event_name != 'pull_request' }}
351
+ push : ${{ github.event_name != 'pull_request' || contains(github.event.head_commit.message, '[push docker]') }}
352
352
load : true
353
353
platforms : ${{ matrix.platform }}
354
354
tags : aminya/${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
@@ -364,7 +364,7 @@ jobs:
364
364
run : docker push aminya/${{ matrix.container.image }}-gcc:latest
365
365
366
366
- name : Docker Readme for setup-cpp-${{matrix.container.distro }}-gcc
367
- if : ${{ github.event_name != 'pull_request' }}
367
+ if : ${{ github.event_name != 'pull_request' || contains(github.event.head_commit.message, '[push docker]') }}
368
368
uses : peter-evans/dockerhub-description@v4
369
369
with :
370
370
username : aminya
@@ -389,7 +389,7 @@ jobs:
389
389
with :
390
390
context : .
391
391
file : ./dev/docker/ci/${{ matrix.container.distro }}-mingw.dockerfile
392
- push : ${{ github.event_name != 'pull_request' }}
392
+ push : ${{ github.event_name != 'pull_request' || contains(github.event.head_commit.message, '[push docker]') }}
393
393
load : true
394
394
platforms : ${{ matrix.platform }}
395
395
tags : aminya/${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
@@ -426,7 +426,7 @@ jobs:
426
426
Docker-Manifest :
427
427
needs : [Docker]
428
428
runs-on : ubuntu-24.04
429
- if : ${{ github.event_name != 'pull_request' }}
429
+ if : ${{ github.event_name != 'pull_request' || contains(github.event.head_commit.message, '[push docker]') }}
430
430
steps :
431
431
- name : Set up Docker Buildx
432
432
uses : docker/setup-buildx-action@v3
@@ -451,13 +451,13 @@ jobs:
451
451
VARIANTS=("" "-llvm" "-gcc" "-mingw")
452
452
for VARIANT in "${VARIANTS[@]}"; do
453
453
echo "Creating manifest for setup-cpp-$DISTRO$VARIANT"
454
-
454
+
455
455
# Create versioned manifest
456
456
docker manifest create "aminya/setup-cpp-$DISTRO$VARIANT:$TAG" \
457
457
"aminya/setup-cpp-$DISTRO$VARIANT:$TAG-amd64" \
458
458
"aminya/setup-cpp-$DISTRO$VARIANT:$TAG-arm64"
459
459
docker manifest push "aminya/setup-cpp-$DISTRO$VARIANT:$TAG"
460
-
460
+
461
461
# Create latest manifest
462
462
docker manifest create "aminya/setup-cpp-$DISTRO$VARIANT:latest" \
463
463
"aminya/setup-cpp-$DISTRO$VARIANT:$TAG-amd64" \
0 commit comments