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:
parent
3f25a6c5a8
commit
d32441334d
16 changed files with 24 additions and 40 deletions
|
|
@ -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() ||
|
||||
|
|
|
|||
|
|
@ -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() ||
|
||||
|
|
|
|||
|
|
@ -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() ||
|
||||
|
|
|
|||
|
|
@ -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() ||
|
||||
|
|
|
|||
|
|
@ -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() ||
|
||||
|
|
|
|||
|
|
@ -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() ||
|
||||
|
|
|
|||
|
|
@ -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() ||
|
||||
|
|
|
|||
|
|
@ -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() ||
|
||||
|
|
|
|||
|
|
@ -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() ||
|
||||
|
|
|
|||
|
|
@ -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() ||
|
||||
|
|
|
|||
|
|
@ -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() ||
|
||||
|
|
|
|||
|
|
@ -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() ||
|
||||
|
|
|
|||
|
|
@ -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() ||
|
||||
|
|
|
|||
|
|
@ -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() ||
|
||||
|
|
|
|||
|
|
@ -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() ||
|
||||
|
|
|
|||
|
|
@ -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() ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue