Last active
September 18, 2015 22:11
-
-
Save stenehall/e4c89c73374ac1c6a585 to your computer and use it in GitHub Desktop.
Docker build and push script for package.json
This file contains 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
DOCKER_TAG=`git rev-parse --abbrev-ref HEAD | sed 's/\\//-/g'` \ | |
&& docker build -t our.docker.com/$DOCKER_TAG . \ | |
&& docker push our.docker.com/$DOCKER_TAG \ | |
&& echo "********************\n**\n**\n** ${DOCKER_TAG} \ | |
pushed successfully time to deploy it\n**\n**\n \ | |
********************" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment