5454 if [[ "${{ github.ref_name }}" =~ ^refs/heads/ ]]; then
5555 git config user.name "github-actions[bot]"
5656 git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
57-
57+
5858 git add dist/
5959 git commit -m "chore(build): update dist"
6060 git push
@@ -267,7 +267,7 @@ jobs:
267267
268268 - name : Login to Docker Hub
269269 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]') }}
271271 with :
272272 username : aminya
273273 password : ${{ secrets.DOCKERHUB_TOKEN }}
@@ -278,7 +278,7 @@ jobs:
278278 with :
279279 context : .
280280 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]') }}
282282 load : true
283283 platforms : ${{ matrix.platform }}
284284 tags : aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
@@ -294,7 +294,7 @@ jobs:
294294 run : docker push aminya/${{ matrix.container.image }}:latest
295295
296296 - 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]') }}
298298 uses : peter-evans/dockerhub-description@v4
299299 with :
300300 username : aminya
@@ -308,7 +308,7 @@ jobs:
308308 with :
309309 context : .
310310 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]') }}
312312 load : true
313313 platforms : ${{ matrix.platform }}
314314 tags : aminya/${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
@@ -324,7 +324,7 @@ jobs:
324324 run : docker push aminya/${{ matrix.container.image }}-llvm:latest
325325
326326 - 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]') }}
328328 uses : peter-evans/dockerhub-description@v4
329329 with :
330330 username : aminya
@@ -348,7 +348,7 @@ jobs:
348348 with :
349349 context : .
350350 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]') }}
352352 load : true
353353 platforms : ${{ matrix.platform }}
354354 tags : aminya/${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
@@ -364,7 +364,7 @@ jobs:
364364 run : docker push aminya/${{ matrix.container.image }}-gcc:latest
365365
366366 - 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]') }}
368368 uses : peter-evans/dockerhub-description@v4
369369 with :
370370 username : aminya
@@ -389,7 +389,7 @@ jobs:
389389 with :
390390 context : .
391391 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]') }}
393393 load : true
394394 platforms : ${{ matrix.platform }}
395395 tags : aminya/${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
@@ -426,7 +426,7 @@ jobs:
426426 Docker-Manifest :
427427 needs : [Docker]
428428 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]') }}
430430 steps :
431431 - name : Set up Docker Buildx
432432 uses : docker/setup-buildx-action@v3
@@ -451,13 +451,13 @@ jobs:
451451 VARIANTS=("" "-llvm" "-gcc" "-mingw")
452452 for VARIANT in "${VARIANTS[@]}"; do
453453 echo "Creating manifest for setup-cpp-$DISTRO$VARIANT"
454-
454+
455455 # Create versioned manifest
456456 docker manifest create "aminya/setup-cpp-$DISTRO$VARIANT:$TAG" \
457457 "aminya/setup-cpp-$DISTRO$VARIANT:$TAG-amd64" \
458458 "aminya/setup-cpp-$DISTRO$VARIANT:$TAG-arm64"
459459 docker manifest push "aminya/setup-cpp-$DISTRO$VARIANT:$TAG"
460-
460+
461461 # Create latest manifest
462462 docker manifest create "aminya/setup-cpp-$DISTRO$VARIANT:latest" \
463463 "aminya/setup-cpp-$DISTRO$VARIANT:$TAG-amd64" \
0 commit comments