Skip to content

Commit 077adc9

Browse files
committed
Reference new orbtools image in orb
1 parent 3f07062 commit 077adc9

File tree

1 file changed

+30
-23
lines changed

1 file changed

+30
-23
lines changed

src/@orb.yml

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
11
version: 2.1
22

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+
313
orbs:
4-
cli: circleci/circleci-cli@volatile
514
envorb: gofunky/envorb@0.3.5
615

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 >>
1922

23+
commands:
2024
env-publish:
2125
description: Uses the CLI to publish an orb to the registry.
2226
parameters:
@@ -152,6 +156,7 @@ jobs:
152156
*Experimental*
153157
Pack the contents of an orb for publishing.
154158
parameters:
159+
<<: [*alpine_params]
155160
source-dir:
156161
description: >
157162
Path to the root of the orb source directory to be packed. (ie: my-orb/src/)
@@ -199,8 +204,8 @@ jobs:
199204
type: string
200205
default: ""
201206
executor:
202-
name: cli/default
203-
tag: alpine
207+
name: default
208+
<<: *alpine_args
204209
steps:
205210
# Setup
206211
- when:
@@ -242,9 +247,10 @@ jobs:
242247
Uses the CLI to increment the version of an orb in the registry.
243248
If the orb does not have a version yet it starts at 0.0.0
244249
executor:
245-
name: cli/default
246-
tag: alpine
250+
name: default
251+
<<: *alpine_args
247252
parameters:
253+
<<: [*alpine_params]
248254
orb-path:
249255
description: Path to an orb file.
250256
type: string
@@ -313,9 +319,10 @@ jobs:
313319

314320
publish:
315321
executor:
316-
name: cli/default
317-
tag: alpine
322+
name: default
323+
<<: *alpine_args
318324
parameters:
325+
<<: [*alpine_params]
319326
orb-path:
320327
description: Path of the orb file to publish.
321328
type: string
@@ -379,6 +386,7 @@ jobs:
379386
check:
380387
description: Pack and validate the orb only.
381388
parameters:
389+
<<: [*alpine_params]
382390
source-dir:
383391
description: >
384392
Path to the root of the orb source directory to be packed.
@@ -395,10 +403,9 @@ jobs:
395403
default: true
396404
executor:
397405
name: envorb/default
398-
alpine_version: "3.8"
406+
<<: *alpine_args
399407
steps:
400408
- checkout
401-
- install
402409
- pack:
403410
source: << parameters.source-dir >>
404411
destination: << parameters.destination-file >>
@@ -413,6 +420,7 @@ jobs:
413420
env-pack-publish:
414421
description: Pack the contents of an orb for publishing and publish it.
415422
parameters:
423+
<<: [*alpine_params]
416424
source-dir:
417425
description: >
418426
Path to the root of the orb source directory to be packed.
@@ -480,13 +488,12 @@ jobs:
480488
default: "${ORB_PUBLISHING_TOKEN}"
481489
executor:
482490
name: envorb/default
483-
alpine_version: "3.8"
491+
<<: *alpine_args
484492
steps:
485493
- when:
486494
condition: << parameters.checkout >>
487495
steps:
488496
- checkout
489-
- install
490497
- attach_workspace:
491498
at: << parameters.attach-at >>
492499
- pack:

0 commit comments

Comments
 (0)