]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci: also push tags when container jobs were triggered manually
authorBenjamin Drung <benjamin.drung@canonical.com>
Tue, 20 Jan 2026 11:01:22 +0000 (12:01 +0100)
committerLaszlo <laszlo.gombos@gmail.com>
Tue, 20 Jan 2026 12:42:28 +0000 (07:42 -0500)
The CI jobs for building the containers might be triggered manually. The
event name is `workflow_dispatch` then and the tag update would not be
pushed. That defeats the purpose of running those jobs manually.

.github/workflows/container-extra.yml
.github/workflows/container.yml

index 73c4e8d0b41762774571be9aa01c52e930c1bfa9..7d63c77d0c65be646ad851a1e098a15f33d6e8a8 100644 (file)
@@ -69,7 +69,7 @@ jobs:
               with:
                   file: test/container/${{ matrix.config.dockerfile }}
                   tags: ghcr.io/${{env.repository_owner}}/${{ matrix.config.tag }}-${{ matrix.architecture.tag }}
-                  push: ${{ github.event_name == 'push' ||  github.event_name == 'schedule' }}
+                  push: ${{ github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
                   platforms: ${{ matrix.architecture.platform }}
                   build-args: |
                       DISTRIBUTION=${{ matrix.config.tag }}
index bcbf6f116824e523017b6bdb3fa5d1073a9a5792..f0758a3115f2c44bf0005acc0c6977200d08ecbf 100644 (file)
@@ -66,7 +66,7 @@ jobs:
               with:
                   file: test/container/${{ matrix.config.dockerfile }}
                   tags: ghcr.io/${{env.repository_owner}}/${{ matrix.config.tag }}-${{ matrix.architecture.tag }}
-                  push: ${{ github.event_name == 'push' ||  github.event_name == 'schedule' }}
+                  push: ${{ github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
                   platforms: ${{ matrix.architecture.platform }}
                   build-args: |
                       DISTRIBUTION=${{ matrix.config.tag }}