Skip to content

Commit

Permalink
add docker-push.sh script using create docker images and tag it, then…
Browse files Browse the repository at this point in the history
… push to docker hub
  • Loading branch information
mylxsw committed Sep 5, 2019
1 parent 0510ed1 commit 9ff04ed
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docker-push.sh
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

if [ ! -n "$1" ]; then
echo "invalid arguments: ./docker-push.sh TAG"
exit 2
fi

TAG=$1

docker build -t mylxsw/wizard .

docker tag mylxsw/wizard mylxsw/wizard:$TAG
docker tag mylxsw/wizard:$TAG mylxsw/wizard:latest
docker push mylxsw/wizard:$TAG
docker push mylxsw/wizard:latest


0 comments on commit 9ff04ed

Please sign in to comment.