3.3.12 • Published 3 years ago

@amille/semantic-release-plugins v3.3.12

Weekly downloads
69
License
MIT
Repository
github
Last release
3 years ago

semantic-release-plugins

npm CircleCI Commitizen friendly

Provide a bunch of custom plugins for semantic-release.

# install using npm
npm install --save-dev @amille/semantic-release-plugins

# or using yarn
yarn add -D @amille/semantic-release-plugins

Build docker image

You may automatically build and push docker.

Add the plugin @amille/semantic-release-plugins/dockerize to your .releaserc file.

{
    "plugins": [
        "@semantic-release/commit-analyzer",
        "@semantic-release/release-notes-generator",
        "@amille/semantic-release-plugins/dockerize"
    ]
}

And finally you may either configure it using environment variables

Variable nameMandatoryDescription
DOCKER_REGISTRYDocker registry (ex: hub.domain.co)
DOCKER_IMAGE:heavy_check_mark:Image name (ex: hello-world)
DOCKER_LOGINUsername for docker login
DOCKER_PASSWORDPassword for docker login
DOCKER_FILEDockerfile

Or configure it using plugin configuration. The environment variable will be used as fallback.

{
    "plugins": [
        [
            "@amille/semantic-release-plugins/dockerize",
            {
                "registry": "hub.domain.co",
                "image": "my-image",
                "dockerfile": "other.Dockerfile"
            }
        ]
    ]
}

You may use plugin settings to inject the version as build arg

{
    "plugins": [
        [
            "@amille/semantic-release-plugins/dockerize",
            {
                "argVersion": "VERSION"
            }
        ]
    ]
}

Update app version in helm chart

You may automatically update the appVersion in a helm chart file.

Add the plugin @amille/semantic-release-plugins/updateHelmChart to your .releaserc file.

{
    "plugins": [
        "@semantic-release/commit-analyzer",
        "@semantic-release/release-notes-generator",
        [
            "@amille/semantic-release-plugins/updateHelmChart",
            {
                "chart": "./chart/Chart.yaml"
            }
        ]
    ]
}

Create archive

You may automatically create archives.

Add the plugin @amille/semantic-release-plugins/archive to your .releaserc file.

{
    "plugins": [
        "@semantic-release/commit-analyzer",
        "@semantic-release/release-notes-generator",
        [
            "@amille/semantic-release-plugins/archive",
            {
                "output": "./archive.zip",
                "assets": ["path/to/file", "glob/pattern/*.js", { "pattern": "path/dir", "relative": "path/" }],
                "globOptions": {}
            }
        ]
    ]
}

Create sentry release

You may automatically create sentry releases (this plugins requires the cli client to be available).

Add the plugin @amille/semantic-release-plugins/sentryRelease to your .releaserc file.

{
    "plugins": [
        "@semantic-release/commit-analyzer",
        "@semantic-release/release-notes-generator",
        [
            "@amille/semantic-release-plugins/sentryRelease",
            {
                "project": "my-project",
                "sourcemaps": ["build/"],
            }
        ]
    ]
}
3.3.11

3 years ago

3.3.12

3 years ago

3.3.10

3 years ago

3.3.9

3 years ago

3.3.8

3 years ago

3.3.7

3 years ago

3.3.6

3 years ago

3.3.5

3 years ago

3.3.4

3 years ago

3.3.3

3 years ago

3.3.2

4 years ago

3.3.1

4 years ago

3.3.0

4 years ago

3.2.3

4 years ago

3.2.2

4 years ago

3.2.1

4 years ago

3.2.0

4 years ago

3.1.3

4 years ago

3.1.2

4 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago