Selects an environment given on the conditions.
7.4K
Selects an set of environment variable prefix depending on the condition.
select-env [FLAGS]
CLI
| Flag / Environment | Description | Type | Required | Default |
|---|---|---|---|---|
$LOG_LEVEL | Define the log level for the application. | stringenum("panic", "fatal", "warn", "info", "debug", "trace") | false | info |
$ENV_FILE | Environment files to inject. | string[] | false | [] |
Environment
| Flag / Environment | Description | Type | Required | Default |
|---|---|---|---|---|
$ENVIRONMENT_CONDITIONS | Regex pattern to select an environment. Use either "heads/" for narrowing the search to branches or "tags/" for narrowing the search to tags. | stringjson([]struct{ match: RegExp, environment: string }) | false | [ |
$ENVIRONMENT_FAIL_ON_NO_REFERENCE | Fail on missing environment references. | bool | false | true |
$ENVIRONMENT_STRICT | Fail on no environment selected. | bool | false | true |
$ENVIRONMENT_FILE | File for writing the environment variables for selected environment. | string | true | env.environment |
GIT
| Flag / Environment | Description | Type | Required | Default |
|---|---|---|---|---|
$CI_COMMIT_REF_NAME$BITBUCKET_BRANCH | Source control branch. | string | false | |
$CI_COMMIT_TAG$BITBUCKET_TAG | Source control tag. | string | false | |
Content type
Image
Digest
sha256:9ab090cf6…
Size
7.1 MB
Last updated
about 8 hours ago
docker pull cenk1cenk2/pipe-select-env