Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .tekton/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@ metadata:
# Trigger on push events to release branches, but ONLY when the branch
# is first created (body.created == true). This means it fires exactly
# once per release branch, not on every commit pushed to it.
# NOTE: on-cel-expression takes precedence over on-event/on-target-branch,
# so the branch filter MUST be included in the CEL expression.
pipelinesascode.tekton.dev/on-event: "[push]"
pipelinesascode.tekton.dev/on-target-branch: "[refs/heads/release-v*]"
pipelinesascode.tekton.dev/on-cel-expression: "body.created == true"
pipelinesascode.tekton.dev/on-cel-expression: >
has(body.created) && body.created == true &&
pac.target_branch.startsWith("refs/heads/release-v")
pipelinesascode.tekton.dev/pipeline: "tekton/operator-release-pipeline.yaml"
pipelinesascode.tekton.dev/max-keep-runs: "5"
spec:
Expand Down
Loading