forked from tektoncd/pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish-run.yaml
233 lines (233 loc) · 5.55 KB
/
publish-run.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: tekton-pipelines
spec:
type: git
params:
- name: url
value: https://github.com/tektoncd/pipeline # REPLACE with your own fork
- name: revision
value: master # REPLACE with your own commit
---
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: tekton-bucket
spec:
type: storage
params:
- name: type
value: gcs
- name: location
value: gs://tekton-releases # REPLACE with your own bucket
- name: dir
value: "y"
---
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: base-image
spec:
type: image
params:
- name: url
value: build-base # Registry is provided via parameter, this is a hack see #569
---
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: entrypoint-image
spec:
type: image
params:
- name: url
value: cmd/entrypoint # Registry is provided via parameter, this is a hack see #569
---
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: kubeconfigwriter-image
spec:
type: image
params:
- name: url
value: cmd/kubeconfigwriter # Registry is provided via parameter, this is a hack see #569
---
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: creds-init-image
spec:
type: image
params:
- name: url
value: cmd/creds-init # Registry is provided via parameter, this is a hack see #569
---
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: git-init-image
spec:
type: image
params:
- name: url
value: cmd/git-init # Registry is provided via parameter, this is a hack see #569
---
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: nop-image
spec:
type: image
params:
- name: url
value: cmd/nop # Registry is provided via parameter, this is a hack see #569
---
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: bash-image
spec:
type: image
params:
- name: url
value: cmd/bash # Registry is provided via parameter, this is a hack see #569
---
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: gsutil-image
spec:
type: image
params:
- name: url
value: cmd/gsutil # Registry is provided via parameter, this is a hack see #569
---
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: controller-image
spec:
type: image
params:
- name: url
value: cmd/controller # Registry is provided via parameter, this is a hack see #569
---
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: webhook-image
spec:
type: image
params:
- name: url
value: cmd/webhook # Registry is provided via parameter, this is a hack see #569
---
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: digest-exporter-image
spec:
type: image
params:
- name: url
value: cmd/imagedigestexporter # Registry is provided via parameter, this is a hack see #569
---
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: pullrequest-init-image
spec:
type: image
params:
- name: url
value: cmd/pullrequest-init # Registry is provided via parameter, this is a hack see #569
---
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: gcs-fetcher-image
spec:
type: image
params:
- name: url
value: vendor/github.com/googlecloudplatform/cloud-builders/gcs-fetcher/cmd/gcs-fetcher # Registry is provided via parameter, this is a hack see #569
---
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: gcs-uploader-image
spec:
type: image
params:
- name: url
value: vendor/github.com/googlecloudplatform/cloud-builders/gcs-fetcher/cmd/gcs-uploader # Registry is provided via parameter, this is a hack see #569
---
apiVersion: tekton.dev/v1alpha1
kind: TaskRun
metadata:
name: publish-run
spec:
serviceAccount: release-right-meow
taskRef:
name: publish-tekton-pipelines
inputs:
resources:
- name: source
resourceRef:
name: tekton-pipelines
- name: bucket
resourceRef:
name: tekton-bucket
params:
- name: versionTag
value: v0.11111.0 # REPLACE with the version you want to release, including `v`. For nightly releases, we might want to use `vYYYYMMDD-commit`
- name: imageRegistry
value: gcr.io/tekton-releases # REPLACE with your own registry
- name: pathToProject
value: github.com/tektoncd/pipeline
outputs:
resources:
- name: bucket
resourceRef:
name: tekton-bucket
- name: builtBaseImage
resourceRef:
name: base-image
- name: builtEntrypointImage
resourceRef:
name: entrypoint-image
- name: builtKubeconfigWriterImage
resourceRef:
name: kubeconfigwriter-image
- name: builtCredsInitImage
resourceRef:
name: creds-init-image
- name: builtGitInitImage
resourceRef:
name: git-init-image
- name: builtNopImage
resourceRef:
name: nop-image
- name: builtBashImage
resourceRef:
name: bash-image
- name: builtGsutilImage
resourceRef:
name: gsutil-image
- name: builtControllerImage
resourceRef:
name: controller-image
- name: builtWebhookImage
resourceRef:
name: webhook-image
- name: builtDigestExporterImage
resourceRef:
name: digest-exporter-image
- name: builtPullRequestInitImage
resourceRef:
name: pullrequest-init-image
- name: builtGcsFetcherImage
resourceRef:
name: gcs-fetcher-image