forked from CircleCI-Public/orb-tools-orb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #6
- Loading branch information
Showing
21 changed files
with
459 additions
and
546 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
orbtools: gofunky/orbtools@dev:198 | ||
orbtools: gofunky/orbtools@dev:691 | ||
envorb: gofunky/[email protected] | ||
docker: gofunky/[email protected] | ||
|
||
|
@@ -46,6 +46,10 @@ orbtools_job: &orbtools_job | |
context: docker-hub | ||
args: "VERSION=${CLI_VERSION},ALPINE=${ALPINE_VERSION},CLI=${CLI_VERSION}" | ||
|
||
orb_tests: &orb_tests | ||
success-config: test/success-test.yml | ||
#fail-config: test/invalid-test.yml | ||
|
||
workflows: | ||
build_latest_image: | ||
jobs: | ||
|
@@ -97,16 +101,14 @@ workflows: | |
check_orb: | ||
jobs: | ||
- orbtools/check: | ||
name: check_pull_request | ||
<<: [*pr_filter, *use_alpine_version] | ||
<<: [*pr_filter, *use_alpine_version, *orb_tests] | ||
|
||
publish_orb: | ||
jobs: | ||
- orbtools/env-pack-publish: | ||
name: publish_latest | ||
- orbtools/publish: | ||
context: orb-tools | ||
version: "dev:${CIRCLE_BUILD_NUM}" | ||
<<: [*master_filter, *use_alpine_version] | ||
<<: [*master_filter, *use_alpine_version, *orb_tests] | ||
|
||
release_orb: | ||
jobs: | ||
|
@@ -116,8 +118,7 @@ workflows: | |
variable: ORB_PUBLISHING_VERSION | ||
<<: [*tag_filter, *use_alpine_version] | ||
|
||
- orbtools/env-pack-publish: | ||
name: publish_release | ||
- orbtools/publish: | ||
context: orb-tools | ||
<<: [*tag_filter, *use_alpine_version] | ||
<<: [*tag_filter, *use_alpine_version, *orb_tests] | ||
requires: [release_tag] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
alpine_version: | ||
description: the Alpine image version | ||
type: string | ||
|
||
publish-token-variable: | ||
description: > | ||
the env var containing your publish token. Pass this as a literal string such | ||
as `$ORB_PUBLISHING_TOKEN`. DO NOT paste the actual token into your | ||
configuration. If omitted it's assumed the CLI has already been setup | ||
with a valid token. | ||
By default, an environment variable `$ORB_PUBLISHING_TOKEN` is expected. | ||
Make sure to pass a context to this job that contains the variable. | ||
type: string | ||
default: "${ORB_PUBLISHING_TOKEN}" | ||
|
||
destination-file: | ||
description: Path including filename of where the packed orb will be written. | ||
type: string | ||
default: ./.orbspace/orb.yml | ||
|
||
orb-path: | ||
description: the path to the orb file | ||
type: string | ||
|
||
namespace: | ||
description: > | ||
The namespace of your target orb. | ||
Environment variables from envorbs are accepted. | ||
By default, the git organization is assumed. | ||
type: string | ||
default: "" | ||
|
||
orb-name: | ||
description: > | ||
The name of your target orb. | ||
Environment variables from envorbs are accepted. | ||
By default, the git repository name is assumed. | ||
type: string | ||
default: "" | ||
|
||
source-dir: | ||
description: > | ||
Path to the root of the orb source directory to be packed. | ||
By default, `src/` is assumed. | ||
type: string | ||
default: src/ | ||
|
||
store-artifact: | ||
description: If enabled, the destination-file will be stored as artifact. | ||
type: boolean | ||
default: true | ||
|
||
patch-environment-variables: | ||
description: > | ||
To replace all template variables with the respective environment variables. | ||
Variables have to be defined in the format `{{"{{"}}.VAR{{"}}"}}`. | ||
type: boolean | ||
default: true | ||
|
||
patch-parameters: | ||
description: > | ||
To patch all crosscutting parameters defined in the src/+parameters.yml file. | ||
Parameters that are shared among multiple commands, orbs or executors can thereby be shared. | ||
Define the parameters in the root layer of the +parameters.yml file. | ||
In every yaml file inside the commands, jobs, or executors folder, the parameters are propagated if they | ||
are referenced there via << parameters.xyz >>. | ||
type: boolean | ||
default: true | ||
|
||
success-verification: | ||
description: define additional post-test-execution checks to verify that the test succeeded | ||
type: steps | ||
default: [] | ||
success-config: | ||
description: the path to the succeeding test case config that refers to the orb jobs to be tested | ||
type: string | ||
default: "" | ||
fail-verification: | ||
description: define additional post-test-execution checks to verify that the test failed | ||
type: steps | ||
default: [] | ||
fail-config: | ||
description: the path to the failing test case config that refers to the orb jobs to be tested | ||
type: string | ||
default: "" | ||
|
||
test-steps: | ||
description: if you need more than 2 test cases, you can define your own test sequence here using the test command | ||
type: steps | ||
default: [] |
Oops, something went wrong.