codefresh 0.85.0 → 0.86.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/codefresh.yml DELETED
@@ -1,385 +0,0 @@
1
- # this pipeline should not be run on version tag releases (it may cause a non correct sha to override version tagged image in dockerhub)
2
- version: "1.0"
3
- mode: parallel
4
- stages:
5
- - prepare
6
- - test
7
- - build
8
- - push
9
- - docker
10
- - final
11
- steps:
12
-
13
- main_clone:
14
- stage: prepare
15
- title: 'Cloning main repository...'
16
- type: git-clone
17
- repo: codefresh-io/cli
18
- revision: ${{CF_BRANCH}}
19
- git: cf_github
20
-
21
- extract_version:
22
- stage: prepare
23
- title: "Exporting package.json version"
24
- image: codefresh/build-cli
25
- commands:
26
- - 'export PACKAGE_VERSION=$(jq -r ".version" package.json)'
27
- - "echo Current version: $PACKAGE_VERSION"
28
- - "cf_export PACKAGE_VERSION"
29
- when:
30
- steps:
31
- - name: main_clone
32
- on:
33
- - success
34
-
35
- check_version:
36
- stage: prepare
37
- title: 'Checking if version already exists'
38
- image: codefresh/build-cli
39
- fail_fast: false
40
- commands:
41
- - >-
42
- RELEASE_ID="$(curl -s https://api.github.com/repos/codefresh-io/cli/releases/tags/v${{PACKAGE_VERSION}} | jq .id)"
43
- echo "Release id: $RELEASE_ID"
44
-
45
- if [ -z "$RELEASE_ID" ] || [ "$RELEASE_ID" = 'null' ]; then
46
- echo "Version is ok: ${{PACKAGE_VERSION}}"
47
- else
48
- echo "Release already exists ${{PACKAGE_VERSION}}"
49
- exit 1
50
- fi
51
- when:
52
- condition:
53
- all:
54
- skipVersionCheck: '"${{SKIP_VERSION_CHECK}}" != "true"'
55
- steps:
56
- - name: extract_version
57
- on:
58
- - success
59
-
60
- install_dependencies:
61
- stage: test
62
- title: 'Installing testing dependencies'
63
- image: codefresh/build-cli
64
- commands:
65
- - yarn install --frozen-lockfile
66
- when:
67
- steps:
68
- - name: extract_version
69
- on:
70
- - success
71
-
72
- parallel_tests:
73
- stage: test
74
- type: parallel
75
- steps:
76
- eslint:
77
- title: 'Running linting logic'
78
- image: codefresh/build-cli
79
- commands:
80
- - yarn eslint
81
-
82
- unit_tests:
83
- title: 'Running unit tests'
84
- image: codefresh/build-cli
85
- commands:
86
- - yarn test
87
-
88
- # Disabled e2e tests because of flakyness
89
- # need to fix flakyness before enabling again.
90
- #
91
- # e2e_tests:
92
- # title: 'Running e2e tests'
93
- # image: codefresh/build-cli
94
- # commands:
95
- # - "echo Running e2e on account: ${{CF_ACCOUNT}}"
96
- # - CF_API_KEY=${{CF_E2E_API_KEY}} yarn e2e
97
- when:
98
- branch:
99
- ignore: [ master ]
100
- steps:
101
- - name: install_dependencies
102
- on:
103
- - success
104
-
105
- build_images:
106
- stage: build
107
- type: parallel
108
- steps:
109
-
110
- build_step_alpine:
111
- type: build
112
- dockerfile: Dockerfile
113
- image-name: codefresh/cli
114
- disable_push: true
115
- tag: ${{CF_BRANCH_TAG_NORMALIZED}}
116
-
117
- build_step_debian:
118
- type: build
119
- dockerfile: Dockerfile-debian
120
- image-name: codefresh/cli
121
- disable_push: true
122
- tag: ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}
123
-
124
- build_step_alpine_rootless:
125
- type: build
126
- dockerfile: Dockerfile-rootless
127
- image-name: codefresh/cli
128
- disable_push: true
129
- tag: ${{CF_BRANCH_TAG_NORMALIZED}}${{ROOTLESS_TAG_POSTFIX}}
130
-
131
- build_step_debian_rootless:
132
- type: build
133
- dockerfile: Dockerfile-debian-rootless
134
- image-name: codefresh/cli
135
- disable_push: true
136
- tag: ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}${{ROOTLESS_TAG_POSTFIX}}
137
- when:
138
- steps:
139
- - name: extract_version
140
- on:
141
- - success
142
-
143
- run_arm_build:
144
- stage: build
145
- type: codefresh-run
146
- arguments:
147
- PIPELINE_ID: codefresh-io/cli/build-arm
148
- TRIGGER_ID: codefresh-io/cli
149
- BRANCH: ${{CF_BRANCH}}
150
- DETACH: false
151
- VARIABLE:
152
- - CF_REPO_OWNER=${{CF_REPO_OWNER}}
153
- - CF_REPO_NAME=${{CF_REPO_NAME}}
154
- - CF_REVISION=${{CF_REVISION}}
155
- - CF_BRANCH=${{CF_BRANCH}}
156
- - CF_SHORT_REVISION=${{CF_SHORT_REVISION}}
157
- - GIT_CONTEXT=cf_github
158
- - IMAGE_NAME=codefresh/cli
159
- - WORKDIR=${{CF_VOLUME_PATH}}/${{CF_REPO_NAME}}
160
- - ARM_TAG_POSTFIX="${{ARM_TAG_POSTFIX}}"
161
- - DEBIAN_TAG_POSTFIX="${{DEBIAN_TAG_POSTFIX}}"
162
- - ROOTLESS_TAG_POSTFIX="${{ROOTLESS_TAG_POSTFIX}}"
163
- - PACKAGE_VERSION=${{PACKAGE_VERSION}}
164
- when:
165
- steps:
166
- - name: extract_version
167
- on:
168
- - success
169
-
170
- push_step_alpine:
171
- stage: push
172
- type: push
173
- tags:
174
- - ${{CF_BRANCH_TAG_NORMALIZED}}
175
- - ${{CF_BRANCH_TAG_NORMALIZED}}-${{CF_SHORT_REVISION}}
176
- candidate: ${{build_step_alpine}}
177
- scale:
178
- push_to_dockerhub:
179
- registry: dockerhub
180
- title: "push to dockerhub"
181
- push_to_gcr:
182
- title: "push to gcr"
183
- push_to_quay:
184
- registry: cf-quay
185
- title: "push to quay.io"
186
- when:
187
- steps:
188
- - name: build_images
189
- on:
190
- - success
191
-
192
- push_step_debian:
193
- stage: push
194
- type: push
195
- tags:
196
- - ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}
197
- - ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}-${{CF_SHORT_REVISION}}
198
- candidate: ${{build_step_debian}}
199
- scale:
200
- push_to_dockerhub_debian:
201
- registry: dockerhub
202
- title: "push to dockerhub"
203
- push_to_gcr_debian:
204
- title: "push to gcr"
205
- push_to_quay_debian:
206
- registry: cf-quay
207
- title: "push to quay.io"
208
- when:
209
- steps:
210
- - name: build_images
211
- on:
212
- - success
213
-
214
- push_step_alpine_rootless:
215
- stage: push
216
- type: push
217
- tags:
218
- - ${{CF_BRANCH_TAG_NORMALIZED}}${{ROOTLESS_TAG_POSTFIX}}
219
- - ${{CF_BRANCH_TAG_NORMALIZED}}${{ROOTLESS_TAG_POSTFIX}}-${{CF_SHORT_REVISION}}
220
- candidate: ${{build_step_alpine_rootless}}
221
- scale:
222
- push_to_dockerhub_rootless:
223
- registry: dockerhub
224
- title: "push to dockerhub"
225
- push_to_gcr_rootless:
226
- title: "push to gcr"
227
- push_to_quay_rootless:
228
- registry: cf-quay
229
- title: "push to quay.io"
230
- when:
231
- steps:
232
- - name: build_images
233
- on:
234
- - success
235
-
236
- push_step_debian_rootless:
237
- stage: push
238
- type: push
239
- tags:
240
- - ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}${{ROOTLESS_TAG_POSTFIX}}
241
- - ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}${{ROOTLESS_TAG_POSTFIX}}-${{CF_SHORT_REVISION}}
242
- candidate: ${{build_step_debian_rootless}}
243
- scale:
244
- push_to_dockerhub_debian_rootless:
245
- registry: dockerhub
246
- title: "push to dockerhub"
247
- push_to_gcr_debian_rootless:
248
- title: "push to gcr"
249
- push_to_quay_debian_rootless:
250
- registry: cf-quay
251
- title: "push to quay.io"
252
- when:
253
- steps:
254
- - name: build_images
255
- on:
256
- - success
257
-
258
- create_manifest_list:
259
- stage: docker
260
- type: "codefresh-inc/multiarch-manifester"
261
- arguments:
262
- image_name: codefresh/cli
263
- arch_tag_postfixes:
264
- arm64: "${{ARM_TAG_POSTFIX}}"
265
- registries:
266
- - name: 'quay.io'
267
- username: '${{QUAY_USERNAME}}'
268
- password: '${{QUAY_PASSWORD}}'
269
- - name: 'docker.io'
270
- username: '${{DOCKERHUB_USERNAME}}'
271
- password: '${{DOCKERHUB_PASSWORD}}'
272
- - name: 'gcr.io'
273
- path_prefix: codefresh-inc
274
- username: '${{GCR_CODEFRESH_INC_USERNAME}}'
275
- password: '${{GCR_CODEFRESH_INC_PASSWORD}}'
276
- scale:
277
- dev_branches_tags:
278
- when:
279
- branch:
280
- ignore: [ master ]
281
- arguments:
282
- tags:
283
- - ${{CF_BRANCH_TAG_NORMALIZED}}
284
- dev_branches_tags_debian:
285
- when:
286
- branch:
287
- ignore: [ master ]
288
- arguments:
289
- tags:
290
- - ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}
291
- dev_branches_tags_rootless:
292
- when:
293
- branch:
294
- ignore: [ master ]
295
- arguments:
296
- tags:
297
- - ${{CF_BRANCH_TAG_NORMALIZED}}${{ROOTLESS_TAG_POSTFIX}}
298
- dev_branches_tags_debian_rootless:
299
- when:
300
- branch:
301
- ignore: [ master ]
302
- arguments:
303
- tags:
304
- - ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}${{ROOTLESS_TAG_POSTFIX}}
305
- when:
306
- steps:
307
- - name: push_step_alpine
308
- on:
309
- - success
310
- - name: push_step_debian
311
- on:
312
- - success
313
- - name: push_step_alpine_rootless
314
- on:
315
- - success
316
- - name: push_step_debian_rootless
317
- on:
318
- - success
319
- - name: run_arm_build
320
- on:
321
- - success
322
-
323
- fail_on_bad_version:
324
- stage: final
325
- image: codefresh/build-cli
326
- commands:
327
- - exit 1
328
- when:
329
- condition:
330
- all:
331
- versionCheckFailed: steps.check_version.result == 'failure'
332
- steps:
333
- - name: create_manifest_list
334
- on:
335
- - success
336
-
337
- execute_release_pipeline:
338
- stage: final
339
- title: "Execute release pipeline in case version was changed"
340
- type: codefresh-run
341
- arguments:
342
- PIPELINE_ID: 'codefresh-io/cli/release'
343
- TRIGGER_ID: codefresh-io/cli_1
344
- BRANCH: master
345
- VARIABLE:
346
- - PACKAGE_VERSION=${{PACKAGE_VERSION}}
347
- when:
348
- branch:
349
- only: [ master ]
350
- condition:
351
- all:
352
- versionCheckSucceeded: steps.check_version.result != 'failure'
353
- steps:
354
- - name: create_manifest_list
355
- on:
356
- - success
357
-
358
- execute_e2e_pipeline:
359
- stage: final
360
- title: "Execute E2E pipeline for image of this commit"
361
- type: codefresh-run
362
- arguments:
363
- PIPELINE_ID: 'cli-v1-e2e/root'
364
- VARIABLE:
365
- - CLI_VERSION=${{CF_BRANCH_TAG_NORMALIZED}}-${{CF_SHORT_REVISION}}
366
- when:
367
- steps:
368
- - name: push_step_alpine
369
- on:
370
- - success
371
-
372
- build_documentation:
373
- stage: test
374
- title: "build documentation http://cli.codefresh.io"
375
- image: codefresh/build-cli
376
- commands:
377
- - "echo Building public docs"
378
- - "yarn run build-public-docs"
379
- environment:
380
- - HUGO_VERSION=0.32.0
381
- when:
382
- steps:
383
- - name: install_dependencies
384
- on:
385
- - success