@netspeedy/semantic-release-docker

0.0.4-development • Public • Published

semantic-release-docker

npm build downloads dependencies peerDependencies Greenkeeper code style: prettier semantic-release license

Set of semantic-release plugins for publishing a docker image to Docker Hub.

{
  "release": {
    "verifyConditions": "semantic-release-docker",
    "publish": {
      "path": "semantic-release-docker",
      "name": "username/imagename"
    }
  }
}

Configuration

Your credentials have to be configured with the environment variables DOCKER_USERNAME 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.

Example .travis.yml

jobs:
  include:
    - stage: release
      language: node_js
      node_js: '8'
      services:
        - docker
      script:
        - docker build -t username/imagename .
        - npm run semantic-release

stages:
  - test
  - name: release
    if: branch = master AND type = push AND fork = false

branches:
  except:
    - /^v\d+\.\d+\.\d+$/

Package Sidebar

Install

npm i @netspeedy/semantic-release-docker

Weekly Downloads

0

Version

0.0.4-development

License

MIT

Unpacked Size

6.68 kB

Total Files

6

Last publish

Collaborators

  • soakes