Skip to content

Commit

Permalink
Update pipeline CEL expression
Browse files Browse the repository at this point in the history
so that it can be copied verbatim to release branches. I.e. there
will be no diff in CEL expressions between `master` and `release-*`
branches with such a CEL expression.

Less diff -> simpler life when setting up release.
  • Loading branch information
msugakov committed Jan 7, 2025
1 parent e526410 commit d5327ef
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .tekton/collector-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ metadata:
pipelinesascode.tekton.dev/max-keep-runs: "500"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request" || (
event == "push" && (
source_branch == "master" ||
target_branch.startsWith("refs/tags/")
)
event == "push" && target_branch.matches("^(master|release-.*|refs/tags/.*)$")
)
labels:
appstudio.openshift.io/application: acs
Expand Down

0 comments on commit d5327ef

Please sign in to comment.