Use pull request pipelinerun to trigger konflux builds.

Using the on push pipelinerun has an undesired side effect of releasing
all the renovate builds before merging them into the main branch.

Use the "on pull request" pipelinerun in an attempt to avoid this.

Signed-off-by: Miguel Martín <mmartinv@redhat.com>
This commit is contained in:
Miguel Martín 2025-06-30 10:41:58 +02:00
parent 3f25a6c5a8
commit d32441334d
No known key found for this signature in database
GPG key ID: 399C0C41974AC700
16 changed files with 24 additions and 40 deletions

View file

@ -8,10 +8,8 @@ metadata:
pipelinesascode.tekton.dev/cancel-in-progress: "false"
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "push" &&
(
target_branch.matches("renovate/.*") ||
target_branch == "main"
(event == "push" && target_branch == "main")
) && (
".tekton/fedora-bootc-rawhide-minimal-plus-push.yaml".pathChanged() ||
"Containerfile".pathChanged() ||