new
This commit is contained in:
9
build.sh
9
build.sh
@@ -2,10 +2,11 @@
|
||||
export DATE=$(date '+%Y-%m-%d')
|
||||
export IMAGENAME=totp-docker
|
||||
export OLDDATE=$(cat .build)
|
||||
export ENDPOINT=ghostklart
|
||||
|
||||
#docker stop officeproxy
|
||||
#docker rm officeproxy
|
||||
docker rmi registry.ghostklart.com/dtibragimov/$IMAGENAME:$OLDDATE -f
|
||||
docker rmi $ENDPOINT/$IMAGENAME:$OLDDATE -f
|
||||
|
||||
git commit -am "$DATE"
|
||||
git push
|
||||
@@ -13,7 +14,7 @@ git push
|
||||
touch .build
|
||||
echo $DATE > .build
|
||||
|
||||
docker build -t registry.ghostklart.com/dtibragimov/$IMAGENAME:$DATE .
|
||||
docker tag registry.ghostklart.com/dtibragimov/$IMAGENAME:$DATE registry.ghostklart.com/dtibragimov/$IMAGENAME:latest
|
||||
docker build -t $ENDPOINT/$IMAGENAME:$DATE .
|
||||
docker tag $ENDPOINT/$IMAGENAME:$DATE $ENDPOINT/$IMAGENAME:latest
|
||||
echo "y" | docker system prune
|
||||
docker push registry.ghostklart.com/dtibragimov/$IMAGENAME -a
|
||||
docker push $ENDPONT/$IMAGENAME -a
|
||||
|
||||
Reference in New Issue
Block a user