Revert "ci: trigger push build action after tag creation"

This reverts commit c53304c3b4.

After experimenting with this release, we have found that the
`workflow_run` action source doesn't work for branches. The
documentation was updated with this PR and has more detail.
https://github.com/github/docs/pull/531

For now, we will revert back to using on.push.tags = ["v*"]

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
This commit is contained in:
Blaine Gardner committed 2021-11-04 14:40:37 -06:00
1 parent 01bb0c1e61
commit 30e02c1063
1 file changed
+3 -9
+3 -9
View File
@@ -4,9 +4,8 @@ on:
branches:
- master
- release-*
workflow_run:
workflows: ["Tag"]
types: [completed]
tags:
- v*
defaults:
run:
@@ -16,12 +15,7 @@ defaults:
jobs:
push-image-to-container-registry:
runs-on: ubuntu-18.04
# github.repository == 'rook/rook': for running the test only in 'rook/rook' repo
# github.event_name == 'push': This is for any push to master or release branches
# github.event.workflow_run.conclusion == 'success': For the tagged workflow completion
if: |
github.repository == 'rook/rook' &&
(github.event_name == 'push' || github.event.workflow_run.conclusion == 'success')
if: github.repository == 'rook/rook'
steps:
- name: checkout
uses: actions/checkout@v2