Automatically build docker image and push it to your registry.
$ npm i --save dockr
const execute = require('dockr');
execute({
registry: 'docker.yourRegistry.com', // default '' which pushes to docker.io/library
username: 'username', // default ''
imageName: 'myawesomeimage', // default ''
dockerFileLocation: '.', // default '.' current location,
timestamp: true, // default false. Append timestamp to the docker tag,
verbose: true // default false. Console log docker process.
}).then(tag => {
console.log('Image successfully pushed to %s', tag);
}).catch(console.error);
$ npm test
Contributions are appreciated.
MIT-licensed. See LICENSE.