From 261c841c82260517a3a69976587a54eae910f657 Mon Sep 17 00:00:00 2001 From: Damir Ibragimov Date: Sat, 14 Oct 2023 00:41:39 +0300 Subject: [PATCH] new --- Dockerfile | 2 +- build.sh | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9bf71a2..b9eef70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,4 +20,4 @@ RUN \ ENV PATH=$PATH:/usr/local/bin ENTRYPOINT ["tini", "--"] -CMD ["sleep","infinity"] +CMD ["sleep","infinity"] \ No newline at end of file diff --git a/build.sh b/build.sh index 1227d72..ec8bc55 100644 --- a/build.sh +++ b/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