Skip to content

Instantly share code, notes, and snippets.

@stenehall
Last active September 18, 2015 22:11
Show Gist options
  • Save stenehall/e4c89c73374ac1c6a585 to your computer and use it in GitHub Desktop.
Save stenehall/e4c89c73374ac1c6a585 to your computer and use it in GitHub Desktop.
Docker build and push script for package.json
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