Skip to content

Commit 1f4e5d9

Browse files
committed
add pull request pipeline
1 parent 2523dd3 commit 1f4e5d9

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
metadata:
4+
annotations:
5+
build.appstudio.openshift.io/repo: https://github.com/opendatahub-io/codeflare-operator?rev={{revision}}
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8+
pipelinesascode.tekton.dev/cancel-in-progress: "false"
9+
pipelinesascode.tekton.dev/max-keep-runs: "3"
10+
pipelinesascode.tekton.dev/on-target-branch: "[test]"
11+
pipelinesascode.tekton.dev/on-event: "[pull_request]"
12+
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
13+
== "main"
14+
creationTimestamp: null
15+
labels:
16+
appstudio.openshift.io/application: opendatahub-release
17+
appstudio.openshift.io/component: odh-codeflare-operator
18+
pipelines.appstudio.openshift.io/type: build
19+
name: odh-codeflare-operator-on-pull-request
20+
namespace: open-data-hub-tenant
21+
spec:
22+
params:
23+
- name: git-url
24+
value: '{{source_url}}'
25+
- name: revision
26+
value: '{{revision}}'
27+
- name: image-expires-after
28+
value: 5d
29+
- name: output-image
30+
value: quay.io/opendatahub/codeflare-operator:pr-v1.16.0
31+
- name: dockerfile
32+
value: Dockerfile
33+
- name: path-context
34+
value: .
35+
pipelineRef:
36+
resolver: git
37+
params:
38+
- name: url
39+
value: https://github.com/red-hat-data-services/konflux-central.git
40+
- name: revision
41+
value: '{{ target_branch }}'
42+
- name: pathInRepo
43+
value: pipelines/container-build.yaml
44+
taskRunTemplate:
45+
serviceAccountName: build-pipeline-odh-codeflare-operator
46+
workspaces:
47+
- name: git-auth
48+
secret:
49+
secretName: '{{ git_auth_secret }}'
50+
status: {}

0 commit comments

Comments
 (0)