1
1
version : 2.1
2
2
3
+ alpine_params : &alpine_params
4
+ alpine_version :
5
+ description : >
6
+ Alpine version
7
+ type : string
8
+ default : " "
9
+
10
+ alpine_args : &alpine_args
11
+ alpine_version : << parameters.alpine_version >>
12
+
3
13
orbs :
4
- cli : circleci/circleci-cli@volatile
5
14
envorb : gofunky/envorb@0.3.5
6
15
7
- commands :
8
-
9
- install :
10
- description : Install envload
11
- steps :
12
- - run :
13
- name : " Install `circleci` CLI"
14
- command : |
15
- wget https://gist.githubusercontent.com/matfax/d2de773b528830adafeb54a4829a8210/raw/4d3a344b6690a52d08537372c7235fddbed9af12/install.sh
16
- chmod +x install.sh
17
- ./install.sh
18
- - envorb/install
16
+ executors :
17
+ default :
18
+ parameters :
19
+ << : *alpine_params
20
+ docker :
21
+ - image : gofunky/orbtools:alpine<< parameters.alpine_version >>
19
22
23
+ commands :
20
24
env-publish :
21
25
description : Uses the CLI to publish an orb to the registry.
22
26
parameters :
@@ -152,6 +156,7 @@ jobs:
152
156
*Experimental*
153
157
Pack the contents of an orb for publishing.
154
158
parameters :
159
+ << : [*alpine_params]
155
160
source-dir :
156
161
description : >
157
162
Path to the root of the orb source directory to be packed. (ie: my-orb/src/)
@@ -199,8 +204,8 @@ jobs:
199
204
type : string
200
205
default : " "
201
206
executor :
202
- name : cli/ default
203
- tag : alpine
207
+ name : default
208
+ << : *alpine_args
204
209
steps :
205
210
# Setup
206
211
- when :
@@ -242,9 +247,10 @@ jobs:
242
247
Uses the CLI to increment the version of an orb in the registry.
243
248
If the orb does not have a version yet it starts at 0.0.0
244
249
executor :
245
- name : cli/ default
246
- tag : alpine
250
+ name : default
251
+ << : *alpine_args
247
252
parameters :
253
+ << : [*alpine_params]
248
254
orb-path :
249
255
description : Path to an orb file.
250
256
type : string
@@ -313,9 +319,10 @@ jobs:
313
319
314
320
publish :
315
321
executor :
316
- name : cli/ default
317
- tag : alpine
322
+ name : default
323
+ << : *alpine_args
318
324
parameters :
325
+ << : [*alpine_params]
319
326
orb-path :
320
327
description : Path of the orb file to publish.
321
328
type : string
@@ -379,6 +386,7 @@ jobs:
379
386
check :
380
387
description : Pack and validate the orb only.
381
388
parameters :
389
+ << : [*alpine_params]
382
390
source-dir :
383
391
description : >
384
392
Path to the root of the orb source directory to be packed.
@@ -395,10 +403,9 @@ jobs:
395
403
default : true
396
404
executor :
397
405
name : envorb/default
398
- alpine_version : " 3.8 "
406
+ << : *alpine_args
399
407
steps :
400
408
- checkout
401
- - install
402
409
- pack :
403
410
source : << parameters.source-dir >>
404
411
destination : << parameters.destination-file >>
@@ -413,6 +420,7 @@ jobs:
413
420
env-pack-publish :
414
421
description : Pack the contents of an orb for publishing and publish it.
415
422
parameters :
423
+ << : [*alpine_params]
416
424
source-dir :
417
425
description : >
418
426
Path to the root of the orb source directory to be packed.
@@ -480,13 +488,12 @@ jobs:
480
488
default : " ${ORB_PUBLISHING_TOKEN}"
481
489
executor :
482
490
name : envorb/default
483
- alpine_version : " 3.8 "
491
+ << : *alpine_args
484
492
steps :
485
493
- when :
486
494
condition : << parameters.checkout >>
487
495
steps :
488
496
- checkout
489
- - install
490
497
- attach_workspace :
491
498
at : << parameters.attach-at >>
492
499
- pack :
0 commit comments