Package Exports
- @damlys/standard-version-updater-docker
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@damlys/standard-version-updater-docker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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.