Sign inSign up

cenk1cenk2/pipe-semantic-release

By cenk1cenk2

Updated about 2 hours 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 / EnvironmentDescriptionTypeRequiredDefault
$CI_COMMIT_REF_NAMECurrent commit reference that can be branch or tag name of the project..stringfalse

CLI

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

Environment

Flag / EnvironmentDescriptionTypeRequiredDefault
$ENVIRONMENT_ENABLEEnable environment injection.boolfalsefalse
$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
json([]struct{ match: RegExp, environment: string })
false[
{ "match": "^tags/v?\d+.\d+.\d+$", "environment": "production" },
{ "match": "^tags/v?\d+.\d+.\d+-.*\.\d+$", "environment": "stage" },
{ "match" :"^heads/main$", "environment": "develop" },
{ "match": "^heads/master$", "environment": "develop" }
]
$ENVIRONMENT_FAIL_ON_NO_REFERENCEFail on missing environment references.boolfalsetrue
$ENVIRONMENT_STRICTFail on no environment selected.boolfalsetrue

GIT

Flag / EnvironmentDescriptionTypeRequiredDefault
$CI_COMMIT_REF_NAME
$BITBUCKET_BRANCH
Source control branch.stringfalse
$CI_COMMIT_TAG
$BITBUCKET_TAG
Source control tag.stringfalse

Login

Flag / EnvironmentDescriptionTypeRequiredDefault
$NPM_LOGINNPM registries to login.string
json([]struct { username: string, password: string, registry?: string, useHttps?: bool })
false
$NPM_NPMRC_FILE.npmrc file to use.string[]false[.npmrc]
$NPM_NPMRCDirect contents of .npmrc file.stringfalse

Package Manager

Flag / EnvironmentDescriptionTypeRequiredDefault
$NODE_PACKAGE_MANAGERPreferred Package manager for nodejs.string
enum("npm", "yarn", "pnpm")
falsepnpm

Semantic Release

Flag / EnvironmentDescriptionTypeRequiredDefault
$SEMANTIC_RELEASE_DRY_RUNRun semantic-release in dry mode without making changes.boolfalsefalse
$SEMANTIC_RELEASE_WORKSPACEUse @qiwi/multi-semantic-release package to do a workspace release.boolfalsefalse

Tag summary

Content type

Image

Digest

sha256:84ab7198e

Size

123.7 MB

Last updated

about 2 hours ago

docker pull cenk1cenk2/pipe-semantic-release