Initial commit

This commit is contained in:
2023-09-07 09:23:34 +00:00
commit 81c504e293
4 changed files with 50 additions and 0 deletions

16
build.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
export DATE=$(date '+%Y-%m-%d')
export IMAGENAME=plextraktsync
export OLDDATE=$(cat .build)
#docker stop officeproxy
#docker rm officeproxy
docker rmi registry.ghostklart.com/dtibragimov/$IMAGENAME:$OLDDATE -f
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