semantic-release-docker
Set of semantic-release plugins for publishing a docker image to
Docker Hub.
{
"release": {
"verifyConditions": "semantic-release-docker",
"publish": {
"path": "semantic-release-docker",
"name": "your-docker-image-name"
}
}
}
Configuration
Your credentials have to be configured with the environment variables DOCKER_USERNAME
, DOCKER_EMAIL
and
DOCKER_PASSWORD
.
In addition, you need to specify the name of the image as the name
setting.
Plugins
verifyConditions
Verify that all needed configuration is present and login to the Docker registry.
publish
Tag the image specified by name
with the new version, push it to Docker Hub and update the latest
tag.