Plugin: updater-docker
Updates a version argument inside a Dockerfile. It is useful when your container build embeds the application version through a build argument.
Installation
Section titled “Installation”semrel plugin install @semrel/dockersemrel plugin install downloads the binary to .semrel/plugins/ and updates .semrel.lock. Commit .semrel.lock to pin the version for your team.
Configuration
Section titled “Configuration”version: 1plugins: - uses: @semrel/docker args: file: Dockerfile arg_name: VERSIONEnvironment Variables
Section titled “Environment Variables”| Name | Required | Default | Description |
|---|---|---|---|
SEMREL_PLUGIN_FILE | no | Dockerfile | Dockerfile to update. |
SEMREL_PLUGIN_ARG_NAME | no | VERSION | Docker build argument that stores the release version. |
Release Context Variables
Section titled “Release Context Variables”SEMREL_NEXT_VERSIONSEMREL_CURRENT_VERSIONSEMREL_TAG_NAMESEMREL_DRY_RUN
Behavior
Section titled “Behavior”For a 1.4.0 release, the updater can rewrite ARG VERSION=1.3.2 to ARG VERSION=1.4.0 in the target Dockerfile.