From 823ae7f30aeb298f5f712c0b45bff88ce1113041 Mon Sep 17 00:00:00 2001 From: tigattack <10629864+tigattack@users.noreply.github.com> Date: Mon, 29 Sep 2025 22:36:27 +0100 Subject: [PATCH] feat: add workflow_dispatch input for Docker image push --- .github/workflows/docker.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index b83bf21..eeba32a 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -8,6 +8,13 @@ on: release: types: - published + workflow_dispatch: + inputs: + push: + description: Push images to registry + required: false + type: boolean + default: false env: REGISTRY: ghcr.io @@ -30,6 +37,7 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Log in to Container Registry + if: github.event_name != 'workflow_dispatch' || github.event_name == 'workflow_dispatch' && github.event.inputs.push == 'true' uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} @@ -51,6 +59,7 @@ jobs: type=raw,value=latest,enable={{is_default_branch}} - name: Build and push ${{ matrix.image }} image + if: github.event_name != 'workflow_dispatch' || github.event_name == 'workflow_dispatch' && github.event.inputs.push == 'true' uses: docker/build-push-action@v6 with: context: .