From 70eddaff654a8d62ceda276d0b97958bb8c2931c Mon Sep 17 00:00:00 2001 From: xnoto Date: Wed, 29 Apr 2026 15:46:11 -0600 Subject: [PATCH] ci: also push on workflow_dispatch (manual deploy from Actions pane) Loosens the Push to registry gate so manual workflow_dispatch runs publish to ghcr in addition to push-to-main events. Pull request runs continue to skip the step (validation only). Lets the user kick off a fresh build+push of one or all images from the Actions pane "Run workflow" button without needing a no-op commit on main to trigger via paths. --- .github/workflows/buildah.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/buildah.yml b/.github/workflows/buildah.yml index da6507a..2a5f3e9 100644 --- a/.github/workflows/buildah.yml +++ b/.github/workflows/buildah.yml @@ -91,7 +91,12 @@ jobs: extra-args: --squash - name: Push to registry - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + # Auto-deploy when an image change pushes to main, OR run manually from + # the Actions pane via workflow_dispatch (which can target a specific + # image via the `image` input). + if: | + (github.event_name == 'push' && github.ref == 'refs/heads/main') || + github.event_name == 'workflow_dispatch' uses: redhat-actions/push-to-registry@v2 with: image: ${{ matrix.image }}