Skip to content

Commit 41733e7

Browse files
committed
Fix tekton triggers
1 parent d327db3 commit 41733e7

8 files changed

Lines changed: 196 additions & 4 deletions

.tekton/network-observability-operator-bundle-ystream-pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
99
pipelinesascode.tekton.dev/max-keep-runs: "3"
1010
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
11-
== "release-1.9" && (".tekton/***".pathChanged() || "bundle.Dockerfile.downstream".pathChanged()
11+
== "main" && (".tekton/***".pathChanged() || "bundle.Dockerfile.downstream".pathChanged()
1212
|| "bundle/***".pathChanged() || "requirements.txt".pathChanged() || "hack/update-build.sh".pathChanged()
1313
|| "hack/patch_csv.py".pathChanged())
1414
creationTimestamp: null

.tekton/network-observability-operator-bundle-ystream-push.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
99
pipelinesascode.tekton.dev/max-keep-runs: "3"
1010
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
11-
== "release-1.9" && (".tekton/***".pathChanged() || "bundle.Dockerfile.downstream".pathChanged()
11+
== "main" && (".tekton/***".pathChanged() || "bundle.Dockerfile.downstream".pathChanged()
1212
|| "bundle/***".pathChanged() || "requirements.txt".pathChanged() || "hack/update-build.sh".pathChanged()
1313
|| "hack/nudging/container_digest.sh".pathChanged() || "hack/patch_csv.py".pathChanged())
1414
creationTimestamp: null
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
metadata:
4+
annotations:
5+
build.appstudio.openshift.io/repo: https://github.com/netobserv/network-observability-operator?rev={{revision}}
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
8+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
9+
pipelinesascode.tekton.dev/max-keep-runs: "3"
10+
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
11+
== "release-1.9" && (".tekton/***".pathChanged() || "bundle.Dockerfile.downstream".pathChanged()
12+
|| "bundle/***".pathChanged() || "requirements.txt".pathChanged() || "hack/update-build.sh".pathChanged()
13+
|| "hack/patch_csv.py".pathChanged())
14+
creationTimestamp: null
15+
labels:
16+
appstudio.openshift.io/application: netobserv-zstream
17+
appstudio.openshift.io/component: network-observability-operator-bundle-zstream
18+
pipelines.appstudio.openshift.io/type: build
19+
name: network-observability-operator-bundle-zstream-on-pull-request
20+
namespace: ocp-network-observab-tenant
21+
spec:
22+
params:
23+
- name: git-url
24+
value: '{{source_url}}'
25+
- name: revision
26+
value: '{{revision}}'
27+
- name: output-image
28+
value: quay.io/redhat-user-workloads/ocp-network-observab-tenant/network-observability-operator-bundle-zstream:on-pr-{{revision}}
29+
- name: image-expires-after
30+
value: 5d
31+
- name: build-args-file
32+
value: Dockerfile-args.downstream
33+
- name: dockerfile
34+
value: bundle.Dockerfile.downstream
35+
- name: prefetch-input
36+
value: '{"type":"pip", "path":"."}'
37+
pipelineRef:
38+
name: build-bundle-pipeline
39+
taskRunTemplate:
40+
serviceAccountName: build-pipeline-network-observability-operator-bundle-ystream
41+
workspaces:
42+
- name: workspace
43+
volumeClaimTemplate:
44+
metadata:
45+
creationTimestamp: null
46+
spec:
47+
accessModes:
48+
- ReadWriteOnce
49+
resources:
50+
requests:
51+
storage: 1Gi
52+
status: {}
53+
- name: git-auth
54+
secret:
55+
secretName: '{{ git_auth_secret }}'
56+
status: {}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
metadata:
4+
annotations:
5+
build.appstudio.openshift.io/build-nudge-files: hack/nudging/bundle_digest.sh
6+
build.appstudio.openshift.io/repo: https://github.com/netobserv/network-observability-operator?rev={{revision}}
7+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
8+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
9+
pipelinesascode.tekton.dev/max-keep-runs: "3"
10+
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
11+
== "release-1.9" && (".tekton/***".pathChanged() || "bundle.Dockerfile.downstream".pathChanged()
12+
|| "bundle/***".pathChanged() || "requirements.txt".pathChanged() || "hack/update-build.sh".pathChanged()
13+
|| "hack/nudging/container_digest.sh".pathChanged() || "hack/patch_csv.py".pathChanged())
14+
creationTimestamp: null
15+
labels:
16+
appstudio.openshift.io/application: netobserv-zstream
17+
appstudio.openshift.io/component: network-observability-operator-bundle-zstream
18+
pipelines.appstudio.openshift.io/type: build
19+
name: network-observability-operator-bundle-zstream-on-push
20+
namespace: ocp-network-observab-tenant
21+
spec:
22+
params:
23+
- name: git-url
24+
value: '{{source_url}}'
25+
- name: revision
26+
value: '{{revision}}'
27+
- name: output-image
28+
value: quay.io/redhat-user-workloads/ocp-network-observab-tenant/network-observability-operator-bundle-zstream:latest
29+
- name: build-args-file
30+
value: Dockerfile-args.downstream
31+
- name: dockerfile
32+
value: bundle.Dockerfile.downstream
33+
- name: prefetch-input
34+
value: '{"type":"pip", "path":"."}'
35+
pipelineRef:
36+
name: build-bundle-pipeline
37+
taskRunTemplate:
38+
serviceAccountName: build-pipeline-network-observability-operator-bundle-ystream
39+
workspaces:
40+
- name: workspace
41+
volumeClaimTemplate:
42+
metadata:
43+
creationTimestamp: null
44+
spec:
45+
accessModes:
46+
- ReadWriteOnce
47+
resources:
48+
requests:
49+
storage: 1Gi
50+
status: {}
51+
- name: git-auth
52+
secret:
53+
secretName: '{{ git_auth_secret }}'
54+
status: {}

.tekton/network-observability-operator-ystream-pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
99
pipelinesascode.tekton.dev/max-keep-runs: "3"
1010
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
11-
== "release-1.9" && (".tekton/***".pathChanged() || "apis/***".pathChanged() || "controllers/***".pathChanged()
11+
== "main" && (".tekton/***".pathChanged() || "apis/***".pathChanged() || "controllers/***".pathChanged()
1212
|| "Dockerfile.downstream".pathChanged() || "docs/***".pathChanged() || "hack/update-build.sh".pathChanged()
1313
|| "LICENSE".pathChanged() || "main.go".pathChanged() || "Makefile".pathChanged()
1414
|| "manifests/***".pathChanged() || "pkg/***".pathChanged())

.tekton/network-observability-operator-ystream-push.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
99
pipelinesascode.tekton.dev/max-keep-runs: "3"
1010
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
11-
== "release-1.9" && (".tekton/***".pathChanged() || "apis/***".pathChanged() || "controllers/***".pathChanged()
11+
== "main" && (".tekton/***".pathChanged() || "apis/***".pathChanged() || "controllers/***".pathChanged()
1212
|| "Dockerfile.downstream".pathChanged() || "docs/***".pathChanged() || "go.mod".pathChanged()
1313
|| "go.sum".pathChanged() || "hack/update-build.sh".pathChanged() || "LICENSE".pathChanged()
1414
|| "main.go".pathChanged() || "Makefile".pathChanged() || "manifests/***".pathChanged()
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
metadata:
4+
annotations:
5+
build.appstudio.openshift.io/repo: https://github.com/netobserv/network-observability-operator?rev={{revision}}
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
8+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
9+
pipelinesascode.tekton.dev/max-keep-runs: "3"
10+
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
11+
== "release-1.9" && (".tekton/***".pathChanged() || "apis/***".pathChanged() || "controllers/***".pathChanged()
12+
|| "Dockerfile.downstream".pathChanged() || "docs/***".pathChanged() || "hack/update-build.sh".pathChanged()
13+
|| "LICENSE".pathChanged() || "main.go".pathChanged() || "Makefile".pathChanged()
14+
|| "manifests/***".pathChanged() || "pkg/***".pathChanged())
15+
creationTimestamp: null
16+
labels:
17+
appstudio.openshift.io/application: netobserv-zstream
18+
appstudio.openshift.io/component: network-observability-operator-zstream
19+
pipelines.appstudio.openshift.io/type: build
20+
name: network-observability-operator-zstream-on-pull-request
21+
namespace: ocp-network-observab-tenant
22+
spec:
23+
params:
24+
- name: git-url
25+
value: '{{source_url}}'
26+
- name: revision
27+
value: '{{revision}}'
28+
- name: output-image
29+
value: quay.io/redhat-user-workloads/ocp-network-observab-tenant/network-observability-operator-zstream:on-pr-{{revision}}
30+
- name: image-expires-after
31+
value: 5d
32+
- name: build-args-file
33+
value: Dockerfile-args.downstream
34+
- name: dockerfile
35+
value: ./Dockerfile.downstream
36+
- name: build-platforms
37+
value:
38+
- linux/x86_64
39+
pipelineRef:
40+
name: build-pipeline
41+
taskRunTemplate:
42+
serviceAccountName: build-pipeline-network-observability-operator-ystream
43+
status: {}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
metadata:
4+
annotations:
5+
build.appstudio.openshift.io/build-nudge-files: hack/nudging/container_digest.sh
6+
build.appstudio.openshift.io/repo: https://github.com/netobserv/network-observability-operator?rev={{revision}}
7+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
8+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
9+
pipelinesascode.tekton.dev/max-keep-runs: "3"
10+
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
11+
== "release-1.9" && (".tekton/***".pathChanged() || "apis/***".pathChanged() || "controllers/***".pathChanged()
12+
|| "Dockerfile.downstream".pathChanged() || "docs/***".pathChanged() || "go.mod".pathChanged()
13+
|| "go.sum".pathChanged() || "hack/update-build.sh".pathChanged() || "LICENSE".pathChanged()
14+
|| "main.go".pathChanged() || "Makefile".pathChanged() || "manifests/***".pathChanged()
15+
|| "pkg/***".pathChanged() || "vendor/***".pathChanged())
16+
creationTimestamp: null
17+
labels:
18+
appstudio.openshift.io/application: netobserv-zstream
19+
appstudio.openshift.io/component: network-observability-operator-zstream
20+
pipelines.appstudio.openshift.io/type: build
21+
name: network-observability-operator-zstream-on-push
22+
namespace: ocp-network-observab-tenant
23+
spec:
24+
params:
25+
- name: git-url
26+
value: '{{source_url}}'
27+
- name: revision
28+
value: '{{revision}}'
29+
- name: output-image
30+
value: quay.io/redhat-user-workloads/ocp-network-observab-tenant/network-observability-operator-zstream:{{revision}}
31+
- name: build-args-file
32+
value: Dockerfile-args.downstream
33+
- name: dockerfile
34+
value: ./Dockerfile.downstream
35+
pipelineRef:
36+
name: build-pipeline
37+
taskRunTemplate:
38+
serviceAccountName: build-pipeline-network-observability-operator-ystream
39+
status: {}

0 commit comments

Comments
 (0)