forked from tektoncd/pipeline
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrelease-pipeline-nightly.yaml
224 lines (224 loc) · 5.96 KB
/
release-pipeline-nightly.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
---
apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
name: pipeline-release-nightly
spec:
params:
- name: package
description: package to release
default: github.com/tektoncd/pipeline
- name: imageRegistry
default: gcr.io/tekton-nightly
resources:
- name: source-repo
type: git
- name: bucket
type: storage
- name: builtKoImage
type: image
- name: builtBaseImage
type: image
- name: builtEntrypointImage
type: image
- name: builtKubeconfigWriterImage
type: image
- name: builtCredsInitImage
type: image
- name: builtGitInitImage
type: image
- name: builtControllerImage
type: image
- name: builtWebhookImage
type: image
- name: builtDigestExporterImage
type: image
- name: builtPullRequestInitImage
type: image
- name: builtGcsFetcherImage
type: image
tasks:
- name: publish-ko-image
taskRef:
name: publish-ci-images
params:
- name: imageRegistry
value: ${params.imageRegistry}
resources:
inputs:
- name: source
resource: source-repo
outputs:
- name: builtKoImage
resource: builtKoImage
- name: publish-images
runAfter: [publish-ko-image]
taskRef:
name: publish-tekton-pipelines-nightly
params:
- name: pathToProject
value: ${params.package}
- name: imageRegistry
value: ${params.imageRegistry}
resources:
inputs:
- name: source
resource: source-repo
- name: bucket
resource: bucket
outputs:
- name: bucket
resource: bucket
- name: builtBaseImage
resource: builtBaseImage
- name: builtEntrypointImage
resource: builtEntrypointImage
- name: builtKubeconfigWriterImage
resource: builtKubeconfigWriterImage
- name: builtCredsInitImage
resource: builtCredsInitImage
- name: builtGitInitImage
resource: builtGitInitImage
- name: builtControllerImage
resource: builtControllerImage
- name: builtWebhookImage
resource: builtWebhookImage
- name: builtDigestExporterImage
resource: builtDigestExporterImage
- name: builtPullRequestInitImage
resource: builtPullRequestInitImage
- name: builtGcsFetcherImage
resource: builtGcsFetcherImage
---
apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
name: pipeline-release-nightly-triggers
spec:
params:
- name: package
description: package to release
default: github.com/tektoncd/pipeline
- name: imageRegistry
default: gcr.io/tekton-nightly
- name: versionTag
description: The X.Y.Z version that the artifacts should be tagged with
resources:
- name: source-repo
type: git
- name: bucket
type: storage
- name: builtKoImage
type: image
- name: builtBaseImage
type: image
- name: builtEntrypointImage
type: image
- name: builtKubeconfigWriterImage
type: image
- name: builtCredsInitImage
type: image
- name: builtGitInitImage
type: image
- name: builtControllerImage
type: image
- name: builtWebhookImage
type: image
- name: builtDigestExporterImage
type: image
- name: builtPullRequestInitImage
type: image
- name: builtGcsFetcherImage
type: image
- name: notification
type: cloudEvent
tasks:
- name: lint
taskRef:
name: golangci-lint
params:
- name: package
value: $(params.package)
- name: flags
value: -v
resources:
inputs:
- name: source
resource: source-repo
- name: unit-tests
runAfter: [lint]
taskRef:
name: golang-test
params:
- name: package
value: $(params.package)
resources:
inputs:
- name: source
resource: source-repo
- name: build
runAfter: [lint]
taskRef:
name: golang-build
params:
- name: package
value: $(params.package)
resources:
inputs:
- name: source
resource: source-repo
- name: publish-ko-image
taskRef:
name: publish-ci-images-triggers
params:
- name: imageRegistry
value: $(params.imageRegistry)
resources:
inputs:
- name: source
resource: source-repo
outputs:
- name: builtKoImage
resource: builtKoImage
- name: publish-images
runAfter: [publish-ko-image, build, unit-tests]
taskRef:
name: publish-tekton-pipelines
params:
- name: pathToProject
value: $(params.package)
- name: versionTag
value: $(params.versionTag)
- name: imageRegistry
value: $(params.imageRegistry)
resources:
inputs:
- name: source
resource: source-repo
- name: bucket
resource: bucket
outputs:
- name: bucket
resource: bucket
- name: builtBaseImage
resource: builtBaseImage
- name: builtEntrypointImage
resource: builtEntrypointImage
- name: builtKubeconfigWriterImage
resource: builtKubeconfigWriterImage
- name: builtCredsInitImage
resource: builtCredsInitImage
- name: builtGitInitImage
resource: builtGitInitImage
- name: builtControllerImage
resource: builtControllerImage
- name: builtWebhookImage
resource: builtWebhookImage
- name: builtDigestExporterImage
resource: builtDigestExporterImage
- name: builtPullRequestInitImage
resource: builtPullRequestInitImage
- name: builtGcsFetcherImage
resource: builtGcsFetcherImage
- name: notification
resource: notification