Last active
April 5, 2016 17:23
-
-
Save nessamurmur/d087ee4e016d4a1fa2fa03613dc2f4c6 to your computer and use it in GitHub Desktop.
docker-release npm script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
"docker-build": "docker build --no-cache -t my-project:$npm_package_version .", | |
"predocker-push-version": "docker tag my-project:$npm_package_version my-repo.com/my-project:$npm_package_version", | |
"docker-push-version": "docker push my-repo.com/my-project:$npm_package_version", | |
"predocker-push-latest": "docker tag my-project:$npm_package_version my-repo.com/my-project:latest", | |
"docker-push-latest": "docker push my-repo.com/my-project:latest", | |
"docker-release-version": "npm run docker-build && npm run docker-push-version", | |
"docker-release": "npm run docker-release-version && npm run docker-push-lastest" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment