Skip to content

Commit 08e66ab

Browse files
authored
ci: also push on workflow_dispatch (manual deploy) (#4)
Auto-deploy on push-to-main is unchanged. This PR adds workflow_dispatch as a second trigger that publishes — useful from the Actions pane to refresh `tfroot-runner:latest` (which still hasn't been republished since the bump in #2 due to the failed run + path-filter exclusion of CI-only commits).
1 parent f1baac9 commit 08e66ab

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/buildah.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,12 @@ jobs:
9191
extra-args: --squash
9292

9393
- name: Push to registry
94-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
94+
# Auto-deploy when an image change pushes to main, OR run manually from
95+
# the Actions pane via workflow_dispatch (which can target a specific
96+
# image via the `image` input).
97+
if: |
98+
(github.event_name == 'push' && github.ref == 'refs/heads/main') ||
99+
github.event_name == 'workflow_dispatch'
95100
uses: redhat-actions/push-to-registry@v2
96101
with:
97102
image: ${{ matrix.image }}

0 commit comments

Comments
 (0)