-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgit-init-push.yaml
56 lines (56 loc) · 1.69 KB
/
git-init-push.yaml
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
49
50
51
52
53
54
55
56
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
annotations:
build.appstudio.openshift.io/repo: https://github.com/openshift-pipelines/ecosystem-images?rev={{revision}}
build.appstudio.redhat.com/commit_sha: '{{revision}}'
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
== "main" &&
("git-init/***".pathChanged() ||
".tekton/git-init-pull-request.yaml".pathChanged() ||
".tekton/git-init-push.yaml".pathChanged() ||
".tekton/image-pipeline.yaml".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: ecosystem-images
appstudio.openshift.io/component: git-init
pipelines.appstudio.openshift.io/type: build
name: git-init-on-push
namespace: tekton-ecosystem-tenant
spec:
params:
- name: git-url
value: '{{source_url}}'
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/ecosystem-images/git-init:{{revision}}
- name: dockerfile
value: git-init/Dockerfile
- name: build-source-image
value: "true"
- name: hermetic
value: "true"
- name: prefetch-input
value: |
{"type": "rpm", "path": "git-init"}
pipelineRef:
name: image-pipeline
workspaces:
- name: workspace
volumeClaimTemplate:
metadata:
creationTimestamp: null
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
status: {}
- name: git-auth
secret:
secretName: '{{ git_auth_secret }}'
status: {}