angular-cn/tools/ngcontainer/publish.sh

14 lines
327 B
Bash
Raw Normal View History

set -e
TAG=$1
if [ -z $TAG ]
then echo "usage: $0 [tag]"; exit 1
fi
docker build . -t angular/ngcontainer:$TAG
docker tag angular/ngcontainer:$TAG angular/ngcontainer:latest
docker push angular/ngcontainer:$TAG
docker push angular/ngcontainer:latest
git tag -a "ngcontainer_${TAG}" -m "published to docker"
git push --tags