-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathocm-container-pull-request.yaml
More file actions
48 lines (48 loc) · 1.64 KB
/
ocm-container-pull-request.yaml
File metadata and controls
48 lines (48 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
annotations:
build.appstudio.openshift.io/repo: https://github.com/openshift/ocm-container?rev={{revision}}
build.appstudio.redhat.com/commit_sha: '{{revision}}'
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/cancel-in-progress: "true"
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
== "master" && (
"Containerfile".pathChanged() ||
"utils/*".pathChanged() ||
".tekton/ocm-container-push.yaml".pathChanged() ||
".tekton/ocm-container-pull-request.yaml".pathChanged() ||
".tekton/pipeline-pull-request-build-image.yaml".pathChanged()
)
creationTimestamp:
labels:
appstudio.openshift.io/application: ocm-container
appstudio.openshift.io/component: ocm-container
pipelines.appstudio.openshift.io/type: build
name: ocm-container-on-pull-request
namespace: ocm-container-tenant
spec:
pipelineRef:
name: pull-request-build-image
params:
- name: git-url
value: '{{source_url}}'
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/ocm-container-tenant/ocm-container:{{revision}}
- name: build-platforms
value:
- linux/x86_64
- linux/arm64
- name: dockerfile
value: Containerfile
taskRunTemplate:
serviceAccountName: build-pipeline-ocm-container
workspaces:
- name: git-auth
secret:
secretName: '{{ git_auth_secret }}'
status: {}