JSPM

semantic-release-gitlab-registry

2.3.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 30
  • Score
    100M100P100Q71337F
  • License MIT

Set of semantic-release plugins to publish to gitlab docker registry

Package Exports

  • semantic-release-gitlab-registry

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 (semantic-release-gitlab-registry) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

semantic-release-gitlab-registry

npm version npm downloads Build Status semantic-release

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"
    }
  }
}

Plugins

verifyConditions

Verify that all needed configuration is present and login to the GitLab Container Registry.

publish

Tag the image with the new version, push it to GitLab Container Registry and update the latest tag.

Example .gitlab-ci.yml

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