@damlys/standard-version-updater-docker
v1.0.0
Published
The conventional-changelog/standard-version updater for Docker Compose and Dockerfile files.
Downloads
8
Maintainers
Readme
standard-version-updater-docker
The conventional-changelog/standard-version updater for Dockerfile and Docker Compose files.
Installation
$ npm install --save-dev @damlys/standard-version-updater-docker
Configuration
Just use following updaters within
.versionrc.json
config file.
{
"bumpFiles": [
{
"filename": "Dockerfile",
"updater": "node_modules/@damlys/standard-version-updater-docker/dist/dockerfile.js"
},
{
"filename": "docker-compose.yml",
"updater": "node_modules/@damlys/standard-version-updater-docker/dist/docker-compose.js"
}
]
}
Examples
Dockerfile
file might look like that:
FROM node
ARG VERSION="1.0.0"
ENV VERSION="1.0.0"
WORKDIR /app
The dockerfile.js
updater looks for
a VERSION="<semver>"
pattern and updates it.
~
docker-compose.yml
file might look like that:
version: "3.8"
services:
service0:
image: image0:${VERSION:-1.0.0}
build: ./dir0
service1:
image: image1:${VERSION:-1.0.0}
build: ./dir1
The docker-compose.js
updater looks for
a ${VERSION:-<semver>}
pattern and updates it.