Skip to content

Plugin for semantic-release that tags a previously built Docker image and pushes it to one or more Docker registries

License

Notifications You must be signed in to change notification settings

sebbo2002/semantic-release-docker

Repository files navigation

@sebbo2002/semantic-release-docker

License

Small plugin for semantic-release that tags a previously built Docker image and pushes it to one or more Docker registries. It is assumed that the login has already happened before. Supports copying / tagging of multi-platform images if regclient is installed in the PATH.

📦 Installation

npm i --D @sebbo2002/semantic-release-docker

🔧 Configuration Example

[
    ['@sebbo2002/semantic-release-docker', {
        images: [
            'ghcr.io/sebbo2002/ble2mqtt@sha256:20d67c38e5d1e215413efdca800069998e325669c91a84cba37033866baecc98',
            'sebbo2002/ble2mqtt:49055cc3e7292e11e9aa081418e3e5570c1f163a'
        ],
        tag: {
            latest: true,
            major: true,
            minor: true,
            version: true,
            channel: true
        }
    }]
]
images A single image or mutliple images as array. Used as source images to tag.
tag.latest Set to true to create latest tag (except it's a pre-release)
tag.major Set to true to create a major tag (except it's a pre-release, v4.2.9 → image:4)
tag.minor Set to true to create a minor tag (except it's a pre-release, v4.2.9 → image:4.2)
tag.version Set to true to create a minor tag (v4.2.9-develop.1 → image:4.2.9-develop.1)
tag.channel Set to true to create channel tags (v4.2.9-develop.1 in channel next → image:next)

🙆🏼‍♂️ Copyright and license

Copyright (c) Sebastian Pekarek under the MIT license.

About

Plugin for semantic-release that tags a previously built Docker image and pushes it to one or more Docker registries

Resources

License

Stars

Watchers

Forks

Packages