Socket
Socket
Sign inDemoInstall

semantic-release-docker

Package Overview
Dependencies
2
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    semantic-release-docker

Set of semantic-release plugins to publish to docker hub


Version published
Weekly downloads
1.3K
increased by10.25%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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+$/

Keywords

FAQs

Last updated on 15 May 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc