14 lines
327 B
Bash
14 lines
327 B
Bash
|
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
|