Skip to content

Commit 0d127db

Browse files
Roshan-Rjoelcapitao
authored andcommitted
fix(tekton) temp-commit: change to files.all for checking whether to run other pipelines other than fcos-buildroot
1 parent 2aca5e9 commit 0d127db

31 files changed

Lines changed: 147 additions & 45 deletions

.tekton/base/base/fedora-coreos.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,16 @@ spec:
3737
value:
3838
- linux/amd64
3939
- linux/arm64
40+
- name: enable-coreos-labels
41+
value: true
42+
- name: enable-bootc-labels
43+
value: false
44+
- name: target-branch
45+
value: '{{target_branch}}'
4046
pipelineRef:
4147
params:
4248
- name: bundle
43-
value: quay.io/bootc-devel/tekton-catalog/pipeline-buildah-build-bootc-multi-platform-oci-ta@sha256:ea80d0ab92471fd4ad5bcaa6961781c3c66ce043e9fc4af7c6cc2b734e8499ca
49+
value: quay.io/jcapitao/tekton-catalog/pipeline-buildah-build-bootc-multi-platform-oci-ta@sha256:e595203164dc5b653aff1d73696541b9817aa4fc40f1c1912c1b5f96a4e7e032
4450
- name: name
4551
value: buildah-build-bootc-multi-platform-oci-ta
4652
- name: kind

.tekton/base/on-pull-request/fedora-coreos-on-pull-request.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,18 @@ spec:
3737
value:
3838
- linux/amd64
3939
- linux/arm64
40+
- name: enable-coreos-labels
41+
value: true
42+
- name: enable-bootc-labels
43+
value: false
44+
- name: target-branch
45+
value: '{{target_branch}}'
4046
- name: image-expires-after
4147
value: 5d
4248
pipelineRef:
4349
params:
4450
- name: bundle
45-
value: quay.io/bootc-devel/tekton-catalog/pipeline-buildah-build-bootc-multi-platform-oci-ta@sha256:ea80d0ab92471fd4ad5bcaa6961781c3c66ce043e9fc4af7c6cc2b734e8499ca
51+
value: quay.io/jcapitao/tekton-catalog/pipeline-buildah-build-bootc-multi-platform-oci-ta@sha256:e595203164dc5b653aff1d73696541b9817aa4fc40f1c1912c1b5f96a4e7e032
4652
- name: name
4753
value: buildah-build-bootc-multi-platform-oci-ta
4854
- name: kind

.tekton/base/on-push/fedora-coreos-on-push.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,16 @@ spec:
3636
value:
3737
- linux/amd64
3838
- linux/arm64
39+
- name: enable-coreos-labels
40+
value: true
41+
- name: enable-bootc-labels
42+
value: false
43+
- name: target-branch
44+
value: '{{target_branch}}'
3945
pipelineRef:
4046
params:
4147
- name: bundle
42-
value: quay.io/bootc-devel/tekton-catalog/pipeline-buildah-build-bootc-multi-platform-oci-ta@sha256:ea80d0ab92471fd4ad5bcaa6961781c3c66ce043e9fc4af7c6cc2b734e8499ca
48+
value: quay.io/jcapitao/tekton-catalog/pipeline-buildah-build-bootc-multi-platform-oci-ta@sha256:e595203164dc5b653aff1d73696541b9817aa4fc40f1c1912c1b5f96a4e7e032
4349
- name: name
4450
value: buildah-build-bootc-multi-platform-oci-ta
4551
- name: kind

.tekton/branched/on-pull-request/fedora-coreos-branched-on-pull-request.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ metadata:
1414
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
1515
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
1616
pipelinesascode.tekton.dev/max-keep-runs: "3"
17-
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "branched" && !("ci/buildroot/**".pathChanged())
17+
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "branched" && !(files.all.all(f, f.matches("ci/buildroot/")))
1818
creationTimestamp: null
1919
spec:
2020
params:
@@ -38,12 +38,18 @@ spec:
3838
value:
3939
- linux/amd64
4040
- linux/arm64
41+
- name: enable-coreos-labels
42+
value: true
43+
- name: enable-bootc-labels
44+
value: false
45+
- name: target-branch
46+
value: '{{target_branch}}'
4147
- name: image-expires-after
4248
value: 5d
4349
pipelineRef:
4450
params:
4551
- name: bundle
46-
value: quay.io/bootc-devel/tekton-catalog/pipeline-buildah-build-bootc-multi-platform-oci-ta@sha256:ea80d0ab92471fd4ad5bcaa6961781c3c66ce043e9fc4af7c6cc2b734e8499ca
52+
value: quay.io/jcapitao/tekton-catalog/pipeline-buildah-build-bootc-multi-platform-oci-ta@sha256:e595203164dc5b653aff1d73696541b9817aa4fc40f1c1912c1b5f96a4e7e032
4753
- name: name
4854
value: buildah-build-bootc-multi-platform-oci-ta
4955
- name: kind

.tekton/branched/on-pull-request/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ patches:
2626
value: 'fedora-coreos-branched-on-pull-request'
2727
- op: replace
2828
path: /metadata/annotations/pipelinesascode.tekton.dev~1on-cel-expression
29-
value: 'event == "pull_request" && target_branch == "branched" && !("ci/buildroot/**".pathChanged())'
29+
value: 'event == "pull_request" && target_branch == "branched" && !(files.all.all(f, f.matches("ci/buildroot/")))'
3030

.tekton/branched/on-push/fedora-coreos-branched-on-push.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ metadata:
1313
build.appstudio.redhat.com/commit_sha: '{{revision}}'
1414
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
1515
pipelinesascode.tekton.dev/max-keep-runs: "3"
16-
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "branched" && !("ci/buildroot/**".pathChanged())
16+
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "branched" && !(files.all.all(f, f.matches("ci/buildroot/")))
1717
creationTimestamp: null
1818
spec:
1919
params:
@@ -37,10 +37,16 @@ spec:
3737
value:
3838
- linux/amd64
3939
- linux/arm64
40+
- name: enable-coreos-labels
41+
value: true
42+
- name: enable-bootc-labels
43+
value: false
44+
- name: target-branch
45+
value: '{{target_branch}}'
4046
pipelineRef:
4147
params:
4248
- name: bundle
43-
value: quay.io/bootc-devel/tekton-catalog/pipeline-buildah-build-bootc-multi-platform-oci-ta@sha256:ea80d0ab92471fd4ad5bcaa6961781c3c66ce043e9fc4af7c6cc2b734e8499ca
49+
value: quay.io/jcapitao/tekton-catalog/pipeline-buildah-build-bootc-multi-platform-oci-ta@sha256:e595203164dc5b653aff1d73696541b9817aa4fc40f1c1912c1b5f96a4e7e032
4450
- name: name
4551
value: buildah-build-bootc-multi-platform-oci-ta
4652
- name: kind

.tekton/branched/on-push/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ patches:
2626
value: 'fedora-coreos-branched-on-push'
2727
- op: replace
2828
path: /metadata/annotations/pipelinesascode.tekton.dev~1on-cel-expression
29-
value: 'event == "push" && target_branch == "branched" && !("ci/buildroot/**".pathChanged())'
29+
value: 'event == "push" && target_branch == "branched" && !(files.all.all(f, f.matches("ci/buildroot/")))'
3030

.tekton/next-devel/on-pull-request/fedora-coreos-next-devel-on-pull-request.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ metadata:
1414
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
1515
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
1616
pipelinesascode.tekton.dev/max-keep-runs: "3"
17-
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "next-devel" && !("ci/buildroot/**".pathChanged())
17+
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "next-devel" && !(files.all.all(f, f.matches("ci/buildroot/")))
1818
creationTimestamp: null
1919
spec:
2020
params:
@@ -38,12 +38,18 @@ spec:
3838
value:
3939
- linux/amd64
4040
- linux/arm64
41+
- name: enable-coreos-labels
42+
value: true
43+
- name: enable-bootc-labels
44+
value: false
45+
- name: target-branch
46+
value: '{{target_branch}}'
4147
- name: image-expires-after
4248
value: 5d
4349
pipelineRef:
4450
params:
4551
- name: bundle
46-
value: quay.io/bootc-devel/tekton-catalog/pipeline-buildah-build-bootc-multi-platform-oci-ta@sha256:ea80d0ab92471fd4ad5bcaa6961781c3c66ce043e9fc4af7c6cc2b734e8499ca
52+
value: quay.io/jcapitao/tekton-catalog/pipeline-buildah-build-bootc-multi-platform-oci-ta@sha256:e595203164dc5b653aff1d73696541b9817aa4fc40f1c1912c1b5f96a4e7e032
4753
- name: name
4854
value: buildah-build-bootc-multi-platform-oci-ta
4955
- name: kind

.tekton/next-devel/on-pull-request/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ patches:
2626
value: 'fedora-coreos-next-devel-on-pull-request'
2727
- op: replace
2828
path: /metadata/annotations/pipelinesascode.tekton.dev~1on-cel-expression
29-
value: 'event == "pull_request" && target_branch == "next-devel" && !("ci/buildroot/**".pathChanged())'
29+
value: 'event == "pull_request" && target_branch == "next-devel" && !(files.all.all(f, f.matches("ci/buildroot/")))'
3030
3131

.tekton/next-devel/on-push/fedora-coreos-next-devel-on-push.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ metadata:
1313
build.appstudio.redhat.com/commit_sha: '{{revision}}'
1414
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
1515
pipelinesascode.tekton.dev/max-keep-runs: "3"
16-
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "next-devel" && !("ci/buildroot/**".pathChanged())
16+
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "next-devel" && !(files.all.all(f, f.matches("ci/buildroot/")))
1717
creationTimestamp: null
1818
spec:
1919
params:
@@ -37,10 +37,16 @@ spec:
3737
value:
3838
- linux/amd64
3939
- linux/arm64
40+
- name: enable-coreos-labels
41+
value: true
42+
- name: enable-bootc-labels
43+
value: false
44+
- name: target-branch
45+
value: '{{target_branch}}'
4046
pipelineRef:
4147
params:
4248
- name: bundle
43-
value: quay.io/bootc-devel/tekton-catalog/pipeline-buildah-build-bootc-multi-platform-oci-ta@sha256:ea80d0ab92471fd4ad5bcaa6961781c3c66ce043e9fc4af7c6cc2b734e8499ca
49+
value: quay.io/jcapitao/tekton-catalog/pipeline-buildah-build-bootc-multi-platform-oci-ta@sha256:e595203164dc5b653aff1d73696541b9817aa4fc40f1c1912c1b5f96a4e7e032
4450
- name: name
4551
value: buildah-build-bootc-multi-platform-oci-ta
4652
- name: kind

0 commit comments

Comments
 (0)