Skip to content

Commit f1b0929

Browse files
committed
ci: skip mingw tagging on Fedora [push docker]
1 parent 24a3400 commit f1b0929

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ jobs:
381381

382382
- name: Build setup-cpp-${{matrix.container.distro }}-mingw
383383
id: build_mingw
384-
if: ${{ !contains(matrix.container.distro, 'fedora') }}
384+
if: ${{ matrix.container.distro != 'fedora' }}
385385
uses: docker/build-push-action@v6
386386
with:
387387
context: .
@@ -394,11 +394,12 @@ jobs:
394394
cache-to: type=inline
395395

396396
- name: Tag latest locally
397+
if: ${{ matrix.container.distro != 'fedora' }}
397398
run: |
398399
docker tag aminya/${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}-mingw:latest
399400
400401
- name: Push latest to Docker Hub
401-
if: ${{ github.event_name != 'pull_request' && matrix.container.distro != 'ubuntu' }}
402+
if: ${{ github.event_name != 'pull_request' && matrix.container.distro != 'ubuntu' && matrix.container.distro != 'fedora' }}
402403
run: docker push aminya/${{ matrix.container.image }}-mingw:latest
403404

404405
- name: Docker Readme for setup-cpp-${{matrix.container.distro }}-mingw
@@ -411,7 +412,7 @@ jobs:
411412
readme-filepath: ./README_DOCKER.md
412413

413414
- name: Test Mingw
414-
if: ${{ !contains(github.event.head_commit.message, '[skip test]') && !contains(matrix.container.distro, 'fedora') }}
415+
if: ${{ !contains(github.event.head_commit.message, '[skip test]') && matrix.container.distro != 'fedora' }}
415416
uses: docker/build-push-action@v6
416417
with:
417418
context: .

0 commit comments

Comments
 (0)