This commit is contained in:
2023-10-14 00:41:39 +03:00
parent 07782053a9
commit 261c841c82
2 changed files with 6 additions and 5 deletions

View File

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