-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathdocker.yml
337 lines (336 loc) · 11 KB
/
docker.yml
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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
groups:
- name: docker-boshrelease
jobs:
- test-docker-boshrelease
- test-docker-boshrelease-pr
- release-candidate
- ship-it
- bump-major
- bump-minor
- bump-docker-components
resources:
- name: git-docker-boshrelease
type: git
source:
branch: master
private_key: ((git-ssh-key.private_key))
uri: [email protected]:cloudfoundry-incubator/docker-boshrelease
- name: git-docker-ce-release
type: github-release-with-version-filtering
source:
access_token: ((github-token-key))
owner: docker
repository: docker-ce
version_filter: < 19.04
- name: github-release
type: github-release
source:
access_token: ((github-token-key))
owner: cloudfoundry-incubator
repository: docker-boshrelease
- name: git-pull-requests
type: pull-request
source:
access_token: ((github-token-key))
repository: cloudfoundry-incubator/docker-boshrelease
- name: s3-tarball
type: gcs
source:
bucket: docker-boshrelease
json_key: ((gcs-json-key))
regexp: docker-(.*).tgz
- name: slack-notification
type: slack-notification
source: {}
- name: ubuntu-xenial-stemcell-gcp
type: bosh-io-stemcell
source:
name: bosh-google-kvm-ubuntu-xenial-go_agent
- name: version
type: semver
source:
bucket: kubo-pipeline-store
driver: gcs
initial_version: 31.0.1
json_key: ((gcs-json-key))
key: versions/docker-boshrelease-version
resource_types:
- name: gcs
type: docker-image
source:
repository: frodenas/gcs-resource
- name: github-release-with-version-filtering
type: docker-image
source:
repository: pcfkubo/github-release-resource
tag: filter-version
- name: pull-request
type: docker-image
source:
repository: teliaoss/github-pr-resource
- name: slack-notification
type: docker-image
source:
repository: cfcommunity/slack-notification-resource
jobs:
- name: test-docker-boshrelease
public: true
serial: true
plan:
- do:
- aggregate:
- get: git-docker-boshrelease
trigger: true
- get: stemcell
resource: ubuntu-xenial-stemcell-gcp
- task: test-docker-boshrelease
file: git-docker-boshrelease/ci/tasks/test-docker-boshrelease.yml
params:
BOSH_CA_CERT: ((docker-bosh.ca-cert))
BOSH_CLIENT: ((docker-bosh.client))
BOSH_CLIENT_SECRET: ((docker-bosh.client-secret))
BOSH_DEPLOYMENT: docker-testflight
BOSH_ENVIRONMENT: ((docker-bosh.environment))
MANIFEST_PATH: git-docker-boshrelease/manifests/containers/example.yml
PROXY_IP: ((docker-bosh.proxy-ip))
PROXY_PRIVATE_KEY: ((docker-bosh.proxy-private-key))
PROXY_USERNAME: ((docker-bosh.proxy-username))
- task: test-docker-boshrelease-swarm
file: git-docker-boshrelease/ci/tasks/test-docker-boshrelease.yml
params:
BOSH_CA_CERT: ((docker-bosh.ca-cert))
BOSH_CLIENT: ((docker-bosh.client))
BOSH_CLIENT_SECRET: ((docker-bosh.client-secret))
BOSH_DEPLOYMENT: docker-swarm-testflight
BOSH_ENVIRONMENT: ((docker-bosh.environment))
MANIFEST_PATH: git-docker-boshrelease/manifests/swarm/docker-swarm.yml
PROXY_IP: ((docker-bosh.proxy-ip))
PROXY_PRIVATE_KEY: ((docker-bosh.proxy-private-key))
PROXY_USERNAME: ((docker-bosh.proxy-username))
- task: run-integration-tests
file: git-docker-boshrelease/ci/tasks/test-docker-boshrelease.yml
params:
BOSH_CA_CERT: ((docker-bosh.ca-cert))
BOSH_CLIENT: ((docker-bosh.client))
BOSH_CLIENT_SECRET: ((docker-bosh.client-secret))
BOSH_DEPLOYMENT: docker-integration-tests
BOSH_ENVIRONMENT: ((docker-bosh.environment))
MANIFEST_PATH: git-docker-boshrelease/manifests/testing/example.yml
PROXY_IP: ((docker-bosh.proxy-ip))
PROXY_PRIVATE_KEY: ((docker-bosh.proxy-private-key))
PROXY_USERNAME: ((docker-bosh.proxy-username))
RUN_TESTS: true
- task: test-minimal-deployment
file: git-docker-boshrelease/ci/tasks/test-docker-boshrelease.yml
params:
BOSH_CA_CERT: ((docker-bosh.ca-cert))
BOSH_CLIENT: ((docker-bosh.client))
BOSH_CLIENT_SECRET: ((docker-bosh.client-secret))
BOSH_DEPLOYMENT: docker-minimal-tests
BOSH_ENVIRONMENT: ((docker-bosh.environment))
MANIFEST_PATH: git-docker-boshrelease/manifests/testing/minimal.yml
PROXY_IP: ((docker-bosh.proxy-ip))
PROXY_PRIVATE_KEY: ((docker-bosh.proxy-private-key))
PROXY_USERNAME: ((docker-bosh.proxy-username))
on_failure:
put: slack-notification
params:
channel: '#docker-boshrelease'
text: '<https://ci.kubo.sh/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|
Concourse Failure! :sad_panda:> docker-boshrelease: test-docker-boshrelease
job failed'
- name: test-docker-boshrelease-pr
public: true
serial: true
plan:
- do:
- aggregate:
- get: git-docker-boshrelease
- get: git-pull-requests
trigger: true
version: every
- get: stemcell
resource: ubuntu-xenial-stemcell-gcp
- put: git-pull-requests
params:
path: git-pull-requests
status: pending
- task: test-docker-boshrelease
file: git-docker-boshrelease/ci/tasks/test-docker-boshrelease-pr.yml
params:
BOSH_CA_CERT: ((docker-bosh.ca-cert))
BOSH_CLIENT: ((docker-bosh.client))
BOSH_CLIENT_SECRET: ((docker-bosh.client-secret))
BOSH_DEPLOYMENT: docker-testflight-pr
BOSH_ENVIRONMENT: ((docker-bosh.environment))
MANIFEST_PATH: git-pull-requests/manifests/containers/example.yml
PROXY_IP: ((docker-bosh.proxy-ip))
PROXY_PRIVATE_KEY: ((docker-bosh.proxy-private-key))
PROXY_USERNAME: ((docker-bosh.proxy-username))
on_failure:
put: git-pull-requests
params:
path: git-pull-requests
status: failure
on_success:
put: git-pull-requests
params:
path: git-pull-requests
status: success
- task: test-docker-boshrelease-swarm
file: git-docker-boshrelease/ci/tasks/test-docker-boshrelease-pr.yml
params:
BOSH_CA_CERT: ((docker-bosh.ca-cert))
BOSH_CLIENT: ((docker-bosh.client))
BOSH_CLIENT_SECRET: ((docker-bosh.client-secret))
BOSH_DEPLOYMENT: docker-swarm-testflight-pr
BOSH_ENVIRONMENT: ((docker-bosh.environment))
MANIFEST_PATH: git-pull-requests/manifests/swarm/docker-swarm.yml
PROXY_IP: ((docker-bosh.proxy-ip))
PROXY_PRIVATE_KEY: ((docker-bosh.proxy-private-key))
PROXY_USERNAME: ((docker-bosh.proxy-username))
- task: run-integration-tests
file: git-docker-boshrelease/ci/tasks/test-docker-boshrelease-pr.yml
params:
BOSH_CA_CERT: ((docker-bosh.ca-cert))
BOSH_CLIENT: ((docker-bosh.client))
BOSH_CLIENT_SECRET: ((docker-bosh.client-secret))
BOSH_DEPLOYMENT: docker-integration-tests
BOSH_ENVIRONMENT: ((docker-bosh.environment))
MANIFEST_PATH: git-docker-boshrelease/manifests/testing/example.yml
PROXY_IP: ((docker-bosh.proxy-ip))
PROXY_PRIVATE_KEY: ((docker-bosh.proxy-private-key))
PROXY_USERNAME: ((docker-bosh.proxy-username))
RUN_TESTS: true
- task: pr-success-message
file: git-docker-boshrelease/ci/tasks/configure-pr-status.yml
on_success:
put: slack-notification
params:
channel: '#docker-boshrelease'
text_file: message/body
- name: release-candidate
public: true
plan:
- do:
- aggregate:
- get: git-docker-boshrelease
passed:
- test-docker-boshrelease
trigger: true
- get: version
params:
pre: rc
- put: version
params:
file: version/number
on_failure:
put: slack-notification
params:
channel: '#docker-boshrelease'
text: '<https://ci.kubo.sh/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|
Concourse Failure! :sad_panda:> docker-boshrelease: rc job failed'
- name: bump-minor
public: true
plan:
- do:
- get: version
params:
bump: minor
- put: version
params:
file: version/number
on_failure:
put: slack-notification
params:
channel: '#docker-boshrelease'
text: '<https://ci.kubo.sh/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|
Concourse Failure! :sad_panda:> docker-boshrelease: bump-minor job failed'
- name: bump-major
public: true
plan:
- do:
- get: version
params:
bump: major
- put: version
params:
file: version/number
on_failure:
put: slack-notification
params:
channel: '#docker-boshrelease'
text: '<https://ci.kubo.sh/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|
Concourse Failure! :sad_panda:> docker-boshrelease: bump-major job failed'
- name: ship-it
public: true
serial: true
plan:
- do:
- name: inputs
aggregate:
- get: version
passed:
- release-candidate
params:
bump: final
- get: git-docker-boshrelease
passed:
- release-candidate
- task: release
file: git-docker-boshrelease/ci/tasks/ship-it.yml
params:
BRANCH: master
GIT_EMAIL: [email protected]
GIT_NAME: CFCR CI BOT
GITHUB_OWNER: cloudfoundry-incubator
NOTIFICATION_OUT: notifications
RELEASE_ROOT: gh
REPO_OUT: pushme
REPO_ROOT: git-docker-boshrelease
S3_ACCESS_KEY: ((gcs-access-key-id))
S3_SECRET_KEY: ((gcs-secret-access-key))
VERSION_FROM: version/number
- put: git-docker-boshrelease
params:
rebase: true
repository: pushme/git-docker-boshrelease
- put: s3-tarball
params:
file: gh/artifacts/docker-*.tgz
- put: github-release
params:
body: gh/notes.md
globs:
- gh/artifacts/*
name: gh/name
tag: gh/tag
- put: version
params:
bump: patch
- aggregate:
- put: slack-notification
params:
channel: '#docker-boshrelease'
text_file: notifications/message
on_failure:
put: slack-notification
params:
channel: '#docker-boshrelease'
text: '<https://ci.kubo.sh/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|
Concourse Failure! :sad_panda:> docker-boshrelease: shipit job failed'
- name: bump-docker-components
plan:
- get: git-docker-boshrelease
- get: git-docker-ce-release
trigger: true
params:
include_source_tarball: true
- task: update-docker
file: git-docker-boshrelease/ci/tasks/bump-docker-version.yml
params:
ACCESS_KEY_ID: ((gcs-access-key-id))
SECRET_ACCESS_KEY: ((gcs-secret-access-key))
- put: git-docker-boshrelease
params:
repository: git-docker-boshrelease-output