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

@@ -20,4 +20,4 @@ RUN \
ENV PATH=$PATH:/usr/local/bin
ENTRYPOINT ["tini", "--"]
CMD ["sleep","infinity"]
CMD ["sleep","infinity"]

View File

@@ -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