2023-09-13

This commit is contained in:
2023-09-13 19:43:58 +00:00
parent aa5b17fa91
commit 0682028abd
2 changed files with 20 additions and 1 deletions

19
build.sh Normal file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
export DATE=$(date '+%Y-%m-%d')
export IMAGENAME=totp-docker
export OLDDATE=$(cat .build)
#docker stop officeproxy
#docker rm officeproxy
docker rmi registry.ghostklart.com/dtibragimov/$IMAGENAME:$OLDDATE -f
git commit -am "$DATE"
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
echo "y" | docker system prune
docker push registry.ghostklart.com/dtibragimov/$IMAGENAME -a

View File

@@ -2,4 +2,4 @@
read -p "Secret name: " SECRET
docker exec -it totp-docker totp $SECRET
docker exec -it totp-docker totp $SECRET