@mashupmill/docker-scripts

1.0.2 • Public • Published

npm-docker-scripts

npm npm GitHub issues

Travis Coveralls github David

Docker scripts for npm projects to allow building and push docker images as part of an npm build

Usage

Update your package.json with to something like this:

{
  "scripts": {
    "prepublishOnly": "mashupmill-docker-scripts build",
    "publish": "mashupmill-docker-scripts push"
  },
  "dockerConfig": {
      "registry": "docker.my-company.com",
      "image": "my-docker-image-name",
      "tag": ["latest"],
      "tagBranch": true,
      "tagVersion": true
    }
}

If you need to authenticate with your docker registry you can either have your build system inject DOCKER_USERNAME and DOCKER_PASSWORD environment variables or (not recommended) put your username and password in the dockerConfig object in your package.json

Readme

Keywords

none

Package Sidebar

Install

npm i @mashupmill/docker-scripts

Weekly Downloads

5

Version

1.0.2

License

MIT

Unpacked Size

19.8 kB

Total Files

15

Last publish

Collaborators

  • ammmze