codefresh 0.84.10 → 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,373 +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
- tag: ${{CF_BRANCH_TAG_NORMALIZED}}
115
-
116
- build_step_debian:
117
- type: build
118
- dockerfile: Dockerfile-debian
119
- image-name: codefresh/cli
120
- tag: ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}
121
-
122
- build_step_alpine_rootless:
123
- type: build
124
- dockerfile: Dockerfile-rootless
125
- image-name: codefresh/cli
126
- tag: ${{CF_BRANCH_TAG_NORMALIZED}}${{ROOTLESS_TAG_POSTFIX}}
127
-
128
- build_step_debian_rootless:
129
- type: build
130
- dockerfile: Dockerfile-debian-rootless
131
- image-name: codefresh/cli
132
- tag: ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}${{ROOTLESS_TAG_POSTFIX}}
133
- when:
134
- steps:
135
- - name: extract_version
136
- on:
137
- - success
138
-
139
- run_arm_build:
140
- stage: build
141
- type: codefresh-run
142
- arguments:
143
- PIPELINE_ID: codefresh-io/cli/build-arm
144
- TRIGGER_ID: codefresh-io/cli
145
- BRANCH: ${{CF_BRANCH}}
146
- DETACH: false
147
- VARIABLE:
148
- - CF_REPO_OWNER=${{CF_REPO_OWNER}}
149
- - CF_REPO_NAME=${{CF_REPO_NAME}}
150
- - CF_REVISION=${{CF_REVISION}}
151
- - CF_BRANCH=${{CF_BRANCH}}
152
- - CF_SHORT_REVISION=${{CF_SHORT_REVISION}}
153
- - GIT_CONTEXT=cf_github
154
- - IMAGE_NAME=codefresh/cli
155
- - WORKDIR=${{CF_VOLUME_PATH}}/${{CF_REPO_NAME}}
156
- - ARM_TAG_POSTFIX="${{ARM_TAG_POSTFIX}}"
157
- - DEBIAN_TAG_POSTFIX="${{DEBIAN_TAG_POSTFIX}}"
158
- - ROOTLESS_TAG_POSTFIX="${{ROOTLESS_TAG_POSTFIX}}"
159
- - PACKAGE_VERSION=${{PACKAGE_VERSION}}
160
- when:
161
- steps:
162
- - name: extract_version
163
- on:
164
- - success
165
-
166
- push_step_alpine:
167
- stage: push
168
- type: push
169
- tag: '${{CF_SHORT_REVISION}}'
170
- candidate: ${{build_step_alpine}}
171
- scale:
172
- push_to_dockerhub:
173
- registry: dockerhub
174
- title: "push to dockerhub"
175
- push_to_gcr:
176
- title: "push to gcr"
177
- push_to_quay:
178
- registry: cf-quay
179
- title: "push to quay.io"
180
- when:
181
- steps:
182
- - name: build_images
183
- on:
184
- - success
185
-
186
- push_step_debian:
187
- stage: push
188
- type: push
189
- tag: '${{CF_SHORT_REVISION}}${{DEBIAN_TAG_POSTFIX}}'
190
- candidate: ${{build_step_debian}}
191
- scale:
192
- push_to_dockerhub_debian:
193
- registry: dockerhub
194
- title: "push to dockerhub"
195
- push_to_gcr_debian:
196
- title: "push to gcr"
197
- push_to_quay_debian:
198
- registry: cf-quay
199
- title: "push to quay.io"
200
- when:
201
- steps:
202
- - name: build_images
203
- on:
204
- - success
205
-
206
- push_step_alpine_rootless:
207
- stage: push
208
- type: push
209
- tag: '${{CF_SHORT_REVISION}}${{ROOTLESS_TAG_POSTFIX}}'
210
- candidate: ${{build_step_alpine_rootless}}
211
- scale:
212
- push_to_dockerhub_rootless:
213
- registry: dockerhub
214
- title: "push to dockerhub"
215
- push_to_gcr_rootless:
216
- title: "push to gcr"
217
- push_to_quay_rootless:
218
- registry: cf-quay
219
- title: "push to quay.io"
220
- when:
221
- steps:
222
- - name: build_images
223
- on:
224
- - success
225
-
226
- push_step_debian_rootless:
227
- stage: push
228
- type: push
229
- tag: '${{CF_SHORT_REVISION}}${{DEBIAN_TAG_POSTFIX}}${{ROOTLESS_TAG_POSTFIX}}'
230
- candidate: ${{build_step_debian_rootless}}
231
- scale:
232
- push_to_dockerhub_debian_rootless:
233
- registry: dockerhub
234
- title: "push to dockerhub"
235
- push_to_gcr_debian_rootless:
236
- title: "push to gcr"
237
- push_to_quay_debian_rootless:
238
- registry: cf-quay
239
- title: "push to quay.io"
240
- when:
241
- steps:
242
- - name: build_images
243
- on:
244
- - success
245
-
246
- create_manifest_list:
247
- stage: docker
248
- type: "codefresh-inc/multiarch-manifester"
249
- arguments:
250
- image_name: codefresh/cli
251
- arch_tag_postfixes:
252
- arm64: "${{ARM_TAG_POSTFIX}}"
253
- registries:
254
- - name: 'quay.io'
255
- username: '${{QUAY_USERNAME}}'
256
- password: '${{QUAY_PASSWORD}}'
257
- - name: 'docker.io'
258
- username: '${{DOCKERHUB_USERNAME}}'
259
- password: '${{DOCKERHUB_PASSWORD}}'
260
- - name: 'gcr.io'
261
- path_prefix: codefresh-inc
262
- username: '${{GCR_CODEFRESH_INC_USERNAME}}'
263
- password: '${{GCR_CODEFRESH_INC_PASSWORD}}'
264
- scale:
265
- dev_branches_tags:
266
- when:
267
- branch:
268
- ignore: [ master ]
269
- arguments:
270
- tags:
271
- - ${{CF_SHORT_REVISION}}
272
- dev_branches_tags_debian:
273
- when:
274
- branch:
275
- ignore: [ master ]
276
- arguments:
277
- tags:
278
- - ${{CF_SHORT_REVISION}}${{DEBIAN_TAG_POSTFIX}}
279
- dev_branches_tags_rootless:
280
- when:
281
- branch:
282
- ignore: [ master ]
283
- arguments:
284
- tags:
285
- - ${{CF_SHORT_REVISION}}${{ROOTLESS_TAG_POSTFIX}}
286
- dev_branches_tags_debian_rootless:
287
- when:
288
- branch:
289
- ignore: [ master ]
290
- arguments:
291
- tags:
292
- - ${{CF_SHORT_REVISION}}${{DEBIAN_TAG_POSTFIX}}${{ROOTLESS_TAG_POSTFIX}}
293
- when:
294
- steps:
295
- - name: push_step_alpine
296
- on:
297
- - success
298
- - name: push_step_debian
299
- on:
300
- - success
301
- - name: push_step_alpine_rootless
302
- on:
303
- - success
304
- - name: push_step_debian_rootless
305
- on:
306
- - success
307
- - name: run_arm_build
308
- on:
309
- - success
310
-
311
- fail_on_bad_version:
312
- stage: final
313
- image: codefresh/build-cli
314
- commands:
315
- - exit 1
316
- when:
317
- condition:
318
- all:
319
- versionCheckFailed: steps.check_version.result == 'failure'
320
- steps:
321
- - name: create_manifest_list
322
- on:
323
- - success
324
-
325
- execute_release_pipeline:
326
- stage: final
327
- title: "Execute release pipeline in case version was changed"
328
- type: codefresh-run
329
- arguments:
330
- PIPELINE_ID: 'codefresh-io/cli/release'
331
- TRIGGER_ID: codefresh-io/cli_1
332
- BRANCH: master
333
- VARIABLE:
334
- - PACKAGE_VERSION=${{PACKAGE_VERSION}}
335
- when:
336
- branch:
337
- only: [ master ]
338
- condition:
339
- all:
340
- versionCheckSucceeded: steps.check_version.result != 'failure'
341
- steps:
342
- - name: create_manifest_list
343
- on:
344
- - success
345
-
346
- execute_e2e_pipeline:
347
- stage: final
348
- title: "Execute E2E pipeline for image of this commit"
349
- type: codefresh-run
350
- arguments:
351
- PIPELINE_ID: 'cli-v1-e2e/root'
352
- VARIABLE:
353
- - CLI_VERSION=${{CF_SHORT_REVISION}}
354
- when:
355
- steps:
356
- - name: push_step_alpine
357
- on:
358
- - success
359
-
360
- build_documentation:
361
- stage: test
362
- title: "build documentation http://cli.codefresh.io"
363
- image: codefresh/build-cli
364
- commands:
365
- - "echo Building public docs"
366
- - "yarn run build-public-docs"
367
- environment:
368
- - HUGO_VERSION=0.32.0
369
- when:
370
- steps:
371
- - name: install_dependencies
372
- on:
373
- - success