Skip to content

Commit b4275ff

Browse files
committed
konflux: match renovate branch properly
As a follow-up of [1], we want to trigger those pipelines for branch starting with "renovate/", but not main. [1] 773642d
1 parent cbc6606 commit b4275ff

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.tekton/coreos-assembler-renovate-push.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ metadata:
77
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
88
pipelinesascode.tekton.dev/cancel-in-progress: "false"
99
pipelinesascode.tekton.dev/max-keep-runs: "3"
10-
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
11-
== "main" && ! "./tests/containers/***".pathChanged() && target_branch.startsWith("renovate/")
10+
pipelinesascode.tekton.dev/on-cel-expression: |
11+
event == "push" && target_branch.startsWith("renovate/") && ! "./tests/containers/***".pathChanged()
1212
creationTimestamp: null
1313
labels:
1414
appstudio.openshift.io/application: coreos-assembler-main

.tekton/kola-nfs-renovate-push.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ metadata:
77
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
88
pipelinesascode.tekton.dev/cancel-in-progress: "false"
99
pipelinesascode.tekton.dev/max-keep-runs: "3"
10-
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
11-
== "main" &&
10+
pipelinesascode.tekton.dev/on-cel-expression: |
11+
event == "push" && target_branch.startsWith("renovate/") &&
1212
("tests/containers/nfs/***".pathChanged() ||
1313
"rpms.lock.yaml".pathChanged() ||
1414
"ci/hermetic/artifacts.lock.yaml".pathChanged()
15-
) && target_branch.startsWith("renovate/")
15+
)
1616
creationTimestamp: null
1717
labels:
1818
appstudio.openshift.io/application: coreos-assembler-main

.tekton/kola-tang-renovate-push.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ metadata:
77
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
88
pipelinesascode.tekton.dev/cancel-in-progress: "false"
99
pipelinesascode.tekton.dev/max-keep-runs: "3"
10-
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
11-
== "main" &&
10+
pipelinesascode.tekton.dev/on-cel-expression: |
11+
event == "push" && target_branch.startsWith("renovate/") &&
1212
("tests/containers/tang/***".pathChanged() ||
1313
"rpms.lock.yaml".pathChanged() ||
1414
"ci/hermetic/artifacts.lock.yaml".pathChanged()
15-
) && target_branch.startsWith("renovate/")
15+
)
1616
creationTimestamp: null
1717
labels:
1818
appstudio.openshift.io/application: coreos-assembler-main

.tekton/kola-targetcli-renovate-push.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ metadata:
77
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
88
pipelinesascode.tekton.dev/cancel-in-progress: "false"
99
pipelinesascode.tekton.dev/max-keep-runs: "3"
10-
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
11-
== "main" &&
10+
pipelinesascode.tekton.dev/on-cel-expression: |
11+
event == "push" && target_branch.startsWith("renovate/") &&
1212
("tests/containers/targetcli/***".pathChanged() ||
1313
"rpms.lock.yaml".pathChanged() ||
1414
"ci/hermetic/artifacts.lock.yaml".pathChanged()
15-
) && target_branch.startsWith("renovate/")
15+
)
1616
creationTimestamp: null
1717
labels:
1818
appstudio.openshift.io/application: coreos-assembler-main

0 commit comments

Comments
 (0)