Sign inSign up

cenk1cenk2/pipe-semantic-release

By cenk1cenk2

•Updated 1 day ago

semantic-release embedded inside a container for CI jobs.

Image
0

10K+

cenk1cenk2/pipe-semantic-release repository overview

⁠pipe-semantic-release

Releases applications through the semantic-release library.

pipe-semantic-release [FLAGS]

⁠Flags

CI Variables

Flag / EnvironmentDescriptionTypeDefault
$SEMANTIC_RELEASE_CI_COMMIT_REFERENCE
$CI_COMMIT_REF_NAME
Current commit reference, either the branch or the tag name of the project.string

CLI

Flag / EnvironmentDescriptionTypeDefault
$LOG_LEVELDefine the log level for the application.string
enum("panic", "fatal", "warn", "info", "debug", "trace")
"info"
$ENV_FILEEnvironment files to inject.string[]

Environment

Flag / EnvironmentDescriptionTypeDefault
$ENVIRONMENT_ENABLEEnable environment injection.boolfalse
$ENVIRONMENT_CONDITIONSRegex pattern to select an environment.
Use either "heads/" for narrowing the search to branches or "tags/" for narrowing the search to tags.
string
format(json([]struct{ match: RegExp, environment: string }))
"[\n { \"match\": \"^tags/v?\\\\d+.\\\\d+.\\\\d+$\", \"environment\": \"production\" },\n { \"match\": \"^tags/v?\\\\d+.\\\\d+.\\\\d+-.*\\\\.\\\\d+$\", \"environment\": \"stage\" },\n { \"match\" :\"^heads/main$\", \"environment\": \"develop\" },\n { \"match\": \"^heads/master$\", \"environment\": \"develop\" }\n]"
$ENVIRONMENT_FAIL_ON_NO_REFERENCEFail on missing environment references.booltrue
$ENVIRONMENT_STRICTFail when no environment is selected.booltrue

GIT

Flag / EnvironmentDescriptionTypeDefault
$CI_COMMIT_REF_NAME
$BITBUCKET_BRANCH
Source control branch.string
$CI_COMMIT_TAG
$BITBUCKET_TAG
Source control tag.string

Login

Flag / EnvironmentDescriptionTypeDefault
$NPM_LOGINNPM registries to login.string
format(json([]struct{ username: string, token: string, registry?: string, useHttps?: bool }))
$NPM_NPMRC_FILE.npmrc file to use.string[]".npmrc"
$NPM_NPMRCDirect contents of .npmrc file.string

Package Manager

Flag / EnvironmentDescriptionTypeDefault
$NODE_PACKAGE_MANAGERPreferred package manager for nodejs.string
format(enum("npm", "yarn", "pnpm"))
"pnpm"

Semantic Release

Flag / EnvironmentDescriptionTypeDefault
$SEMANTIC_RELEASE_DRY_RUNRun semantic-release in dry mode without making changes.boolfalse
$SEMANTIC_RELEASE_WORKSPACEUse @anolilab/multi-semantic-release package to do a workspace release.boolfalse

Tag summary

Content type

Image

Digest

sha256:5d0a66626…

Size

133.8 MB

Last updated

1 day ago

docker pull cenk1cenk2/pipe-semantic-release