-
Notifications
You must be signed in to change notification settings - Fork 111
/
Copy pathbindings.yaml
75 lines (75 loc) · 1.95 KB
/
bindings.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
apiVersion: triggers.tekton.dev/v1alpha1
kind: TriggerBinding
metadata:
name: tekton-ci-taskrun-cloudevent
spec:
params:
- name: pullRequestNumber
value: $(body.taskRun.metadata.labels.tekton\.dev/pr-number)
- name: gitRevision
value: $(body.taskRun.metadata.annotations.tekton\.dev/gitRevision)
- name: buildUUID
value: $(body.taskRun.metadata.labels.prow\.k8s\.io/build-id)
- name: checkName
value: $(body.taskRun.metadata.labels.tekton\.dev/check-name)
- name: taskRunName
value: $(body.taskRun.metadata.name)
- name: taskRunNamespace
value: $(body.taskRun.metadata.namespace)
---
apiVersion: triggers.tekton.dev/v1alpha1
kind: TriggerBinding
metadata:
name: tekton-ci-check-pending
spec:
params:
- name: gitHubCheckStatus
value: pending
- name: gitHubCheckDescription
value: "Job Triggered."
---
apiVersion: triggers.tekton.dev/v1alpha1
kind: TriggerBinding
metadata:
name: tekton-ci-check-success
spec:
params:
- name: gitHubCheckStatus
value: success
- name: gitHubCheckDescription
value: "Job Successful."
---
apiVersion: triggers.tekton.dev/v1alpha1
kind: TriggerBinding
metadata:
name: tekton-ci-check-failure
spec:
params:
- name: gitHubCheckStatus
value: failure
- name: gitHubCheckDescription
value: "Job Failed."
---
apiVersion: triggers.tekton.dev/v1alpha1
kind: TriggerBinding
metadata:
name: tekton-ci-taskrun-from-pipelinerun-cloudevent
spec:
params:
- name: parentPipelineRunName
value: $(body.taskRun.metadata.ownerReferences[?(@.kind == 'PipelineRun')].name)
- name: parentPipelineRunTaskName
value: $(body.taskRun.metadata.labels.tekton\.dev/pipelineTask)
---
apiVersion: triggers.tekton.dev/v1alpha1
kind: TriggerBinding
metadata:
name: tekton-ci-overlays
spec:
params:
- name: gitHubRepo
value: $(extensions.repo)
- name: shortSourceEventID
value: $(extensions.shortSourceEventID)
- name: gitHubRepoUnderscore
value: $(extensions.repoUnderscore)