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

@ -9,9 +9,9 @@ metadata:
pipelinesascode.tekton.dev/cancel-in-progress: "true"
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request" &&
(
target_branch == "main"
(event == "pull_request" && target_branch == "main") ||
(event == "push" && target_branch.startsWith("renovate/"))
) && (
".tekton/fedora-bootc-42-iot-pull-request.yaml".pathChanged() ||
"Containerfile".pathChanged() ||

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-42-iot-push.yaml".pathChanged() ||
"Containerfile".pathChanged() ||

View file

@ -9,9 +9,9 @@ metadata:
pipelinesascode.tekton.dev/cancel-in-progress: "true"
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request" &&
(
target_branch == "main"
(event == "pull_request" && target_branch == "main") ||
(event == "push" && target_branch.startsWith("renovate/"))
) && (
".tekton/fedora-bootc-42-minimal-plus-pull-request.yaml".pathChanged() ||
"Containerfile".pathChanged() ||

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-42-minimal-plus-push.yaml".pathChanged() ||
"Containerfile".pathChanged() ||

View file

@ -9,9 +9,9 @@ metadata:
pipelinesascode.tekton.dev/cancel-in-progress: "true"
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request" &&
(
target_branch == "main"
(event == "pull_request" && target_branch == "main") ||
(event == "push" && target_branch.startsWith("renovate/"))
) && (
".tekton/fedora-bootc-42-minimal-pull-request.yaml".pathChanged() ||
"Containerfile".pathChanged() ||

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-42-minimal-push.yaml".pathChanged() ||
"Containerfile".pathChanged() ||

View file

@ -9,9 +9,9 @@ metadata:
pipelinesascode.tekton.dev/cancel-in-progress: "true"
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request" &&
(
target_branch == "main"
(event == "pull_request" && target_branch == "main") ||
(event == "push" && target_branch.startsWith("renovate/"))
) && (
".tekton/fedora-bootc-42-standard-pull-request.yaml".pathChanged() ||
"Containerfile".pathChanged() ||

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-42-standard-push.yaml".pathChanged() ||
"Containerfile".pathChanged() ||

View file

@ -9,9 +9,9 @@ metadata:
pipelinesascode.tekton.dev/cancel-in-progress: "true"
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request" &&
(
target_branch == "main"
(event == "pull_request" && target_branch == "main") ||
(event == "push" && target_branch.startsWith("renovate/"))
) && (
".tekton/fedora-bootc-rawhide-iot-pull-request.yaml".pathChanged() ||
"Containerfile".pathChanged() ||

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-iot-push.yaml".pathChanged() ||
"Containerfile".pathChanged() ||

View file

@ -9,9 +9,9 @@ metadata:
pipelinesascode.tekton.dev/cancel-in-progress: "true"
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request" &&
(
target_branch == "main"
(event == "pull_request" && target_branch == "main") ||
(event == "push" && target_branch.startsWith("renovate/"))
) && (
".tekton/fedora-bootc-rawhide-minimal-plus-pull-request.yaml".pathChanged() ||
"Containerfile".pathChanged() ||

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() ||

View file

@ -9,9 +9,9 @@ metadata:
pipelinesascode.tekton.dev/cancel-in-progress: "true"
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request" &&
(
target_branch == "main"
(event == "pull_request" && target_branch == "main") ||
(event == "push" && target_branch.startsWith("renovate/"))
) && (
".tekton/fedora-bootc-rawhide-minimal-pull-request.yaml".pathChanged() ||
"Containerfile".pathChanged() ||

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-push.yaml".pathChanged() ||
"Containerfile".pathChanged() ||

View file

@ -9,9 +9,9 @@ metadata:
pipelinesascode.tekton.dev/cancel-in-progress: "true"
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request" &&
(
target_branch == "main"
(event == "pull_request" && target_branch == "main") ||
(event == "push" && target_branch.startsWith("renovate/"))
) && (
".tekton/fedora-bootc-rawhide-standard-pull-request.yaml".pathChanged() ||
"Containerfile".pathChanged() ||

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-standard-push.yaml".pathChanged() ||
"Containerfile".pathChanged() ||