Skip to content

Commit

Permalink
Reference new orbtools image in orb
Browse files Browse the repository at this point in the history
  • Loading branch information
matfax committed Nov 13, 2018
1 parent 3f07062 commit 077adc9
Showing 1 changed file with 30 additions and 23 deletions.
53 changes: 30 additions & 23 deletions src/@orb.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
version: 2.1

alpine_params: &alpine_params
alpine_version:
description: >
Alpine version
type: string
default: ""

alpine_args: &alpine_args
alpine_version: << parameters.alpine_version >>

orbs:
cli: circleci/circleci-cli@volatile
envorb: gofunky/[email protected]

commands:

install:
description: Install envload
steps:
- run:
name: "Install `circleci` CLI"
command: |
wget https://gist.githubusercontent.com/matfax/d2de773b528830adafeb54a4829a8210/raw/4d3a344b6690a52d08537372c7235fddbed9af12/install.sh
chmod +x install.sh
./install.sh
- envorb/install
executors:
default:
parameters:
<<: *alpine_params
docker:
- image: gofunky/orbtools:alpine<< parameters.alpine_version >>

commands:
env-publish:
description: Uses the CLI to publish an orb to the registry.
parameters:
Expand Down Expand Up @@ -152,6 +156,7 @@ jobs:
*Experimental*
Pack the contents of an orb for publishing.
parameters:
<<: [*alpine_params]
source-dir:
description: >
Path to the root of the orb source directory to be packed. (ie: my-orb/src/)
Expand Down Expand Up @@ -199,8 +204,8 @@ jobs:
type: string
default: ""
executor:
name: cli/default
tag: alpine
name: default
<<: *alpine_args
steps:
# Setup
- when:
Expand Down Expand Up @@ -242,9 +247,10 @@ jobs:
Uses the CLI to increment the version of an orb in the registry.
If the orb does not have a version yet it starts at 0.0.0
executor:
name: cli/default
tag: alpine
name: default
<<: *alpine_args
parameters:
<<: [*alpine_params]
orb-path:
description: Path to an orb file.
type: string
Expand Down Expand Up @@ -313,9 +319,10 @@ jobs:

publish:
executor:
name: cli/default
tag: alpine
name: default
<<: *alpine_args
parameters:
<<: [*alpine_params]
orb-path:
description: Path of the orb file to publish.
type: string
Expand Down Expand Up @@ -379,6 +386,7 @@ jobs:
check:
description: Pack and validate the orb only.
parameters:
<<: [*alpine_params]
source-dir:
description: >
Path to the root of the orb source directory to be packed.
Expand All @@ -395,10 +403,9 @@ jobs:
default: true
executor:
name: envorb/default
alpine_version: "3.8"
<<: *alpine_args
steps:
- checkout
- install
- pack:
source: << parameters.source-dir >>
destination: << parameters.destination-file >>
Expand All @@ -413,6 +420,7 @@ jobs:
env-pack-publish:
description: Pack the contents of an orb for publishing and publish it.
parameters:
<<: [*alpine_params]
source-dir:
description: >
Path to the root of the orb source directory to be packed.
Expand Down Expand Up @@ -480,13 +488,12 @@ jobs:
default: "${ORB_PUBLISHING_TOKEN}"
executor:
name: envorb/default
alpine_version: "3.8"
<<: *alpine_args
steps:
- when:
condition: << parameters.checkout >>
steps:
- checkout
- install
- attach_workspace:
at: << parameters.attach-at >>
- pack:
Expand Down

0 comments on commit 077adc9

Please sign in to comment.