983 B
983 B
Maintenance
Docker Build - Powershell (One Line)
$tag = ("0.0.1").Trim(); Remove-Item -Path "./database/database.sqlite" -Force; Remove-Item -Path ".env" -Force; $tag | set-content -path "./public/version.txt" -Force; git reset --hard; git pull origin master; git tag $tag; git push --tags; docker build -t git.steelants.cz/jonatanrek/lar_maintenance:$tag .; docker push git.steelants.cz/jonatanrek/lar_maintenance:$tag; docker build -t git.steelants.cz/jonatanrek/lar_maintenance:latest .; docker push git.steelants.cz/jonatanrek/lar_maintenance:latest
Docker Build - Bash (One Line)
export TAG="0.0.1" && echo "$TAG" > "./public/version.txt" && sudo docker build -t git.steelants.cz/jonatanrek/lar_maintenance:"$TAG" . && sudo docker push git.steelants.cz/jonatanrek/lar_maintenance:"$TAG" && sudo docker build -t git.steelants.cz/jonatanrek/lar_maintenance:latest . && sudo docker push git.steelants.cz/jonatanrek/lar_maintenance:latest