From: Benjamin Drung Date: Tue, 20 Jan 2026 11:01:22 +0000 (+0100) Subject: ci: also push tags when container jobs were triggered manually X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=695efd94694ed35db30546b0b5b243842e945ed4;p=thirdparty%2Fdracut-ng.git ci: also push tags when container jobs were triggered manually 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. --- diff --git a/.github/workflows/container-extra.yml b/.github/workflows/container-extra.yml index 73c4e8d0b..7d63c77d0 100644 --- a/.github/workflows/container-extra.yml +++ b/.github/workflows/container-extra.yml @@ -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 }} diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index bcbf6f116..f0758a311 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -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 }}