Skip to content

Commit 8c675ca

Browse files
author
konflux
committed
Konflux build pipeline service account migration for client-server
Signed-off-by: konflux <konflux@no-reply.konflux-ci.dev>
1 parent 1e42328 commit 8c675ca

File tree

2 files changed

+24
-18
lines changed

2 files changed

+24
-18
lines changed

.tekton/client-server-pull-request.yaml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ metadata:
77
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
88
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
99
pipelinesascode.tekton.dev/max-keep-runs: "3"
10-
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "main" && ( "Dockerfile.clients.rh".pathChanged() || ".tekton/client-server-pull-request.yaml".pathChanged() || "trigger-konflux-builds.txt".pathChanged() )
10+
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
11+
== "main" && ( "Dockerfile.clients.rh".pathChanged() || ".tekton/client-server-pull-request.yaml".pathChanged()
12+
|| "trigger-konflux-builds.txt".pathChanged() )
1113
creationTimestamp: null
1214
labels:
1315
appstudio.openshift.io/application: cli
@@ -32,15 +34,16 @@ spec:
3234
- name: build-source-image
3335
value: "true"
3436
pipelineRef:
35-
resolver: git
3637
params:
37-
- name: url
38-
value: 'https://github.com/securesign/pipelines.git'
39-
- name: revision
40-
value: 'main'
41-
- name: pathInRepo
42-
value: 'pipelines/docker-build-oci-ta.yaml'
43-
taskRunTemplate: {}
38+
- name: url
39+
value: https://github.com/securesign/pipelines.git
40+
- name: revision
41+
value: main
42+
- name: pathInRepo
43+
value: pipelines/docker-build-oci-ta.yaml
44+
resolver: git
45+
taskRunTemplate:
46+
serviceAccountName: build-pipeline-client-server
4447
workspaces:
4548
- name: workspace
4649
volumeClaimTemplate:

.tekton/client-server-push.yaml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ metadata:
66
build.appstudio.redhat.com/commit_sha: '{{revision}}'
77
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
88
pipelinesascode.tekton.dev/max-keep-runs: "3"
9-
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" && ( "Dockerfile.clients.rh".pathChanged() || ".tekton/client-server-push.yaml".pathChanged() || "trigger-konflux-builds.txt".pathChanged() )
9+
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
10+
== "main" && ( "Dockerfile.clients.rh".pathChanged() || ".tekton/client-server-push.yaml".pathChanged()
11+
|| "trigger-konflux-builds.txt".pathChanged() )
1012
creationTimestamp: null
1113
labels:
1214
appstudio.openshift.io/application: cli
@@ -29,15 +31,16 @@ spec:
2931
- name: build-source-image
3032
value: "true"
3133
pipelineRef:
32-
resolver: git
3334
params:
34-
- name: url
35-
value: 'https://github.com/securesign/pipelines.git'
36-
- name: revision
37-
value: 'main'
38-
- name: pathInRepo
39-
value: 'pipelines/docker-build-oci-ta.yaml'
40-
taskRunTemplate: {}
35+
- name: url
36+
value: https://github.com/securesign/pipelines.git
37+
- name: revision
38+
value: main
39+
- name: pathInRepo
40+
value: pipelines/docker-build-oci-ta.yaml
41+
resolver: git
42+
taskRunTemplate:
43+
serviceAccountName: build-pipeline-client-server
4144
workspaces:
4245
- name: workspace
4346
volumeClaimTemplate:

0 commit comments

Comments
 (0)