Set of semantic-release plugins for publishing a docker image to GitLab Container Registry.
{
"release": {
"verifyConditions": "semantic-release-gitlab-registry",
"publish": {
"path": "semantic-release-gitlab-registry",
"name": "username/imagename"
}
}
}
Verify that all needed configuration is present and login to the GitLab Container Registry.
Tag the image with the new version, push it to GitLab Container Registry and update the latest
tag.
stages:
- test
- release
test:
image: node:alpine
stage: test
before_script:
- npm i
script:
- npm t
release:
image: node:alpine
stage: release
before_script:
- npm i
- docker build -t $CI_REGISTRY_IMAGE .
script:
- npx semantic-release
only:
- master