17 lines
1.0 KiB
Markdown
17 lines
1.0 KiB
Markdown
# Maintenance
|
|
|
|
#### Docker Build - Powershell (One Line)
|
|
```powershell
|
|
$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)
|
|
```bash
|
|
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
|
|
```
|
|
|
|
### TODO
|
|
* Maintenance Relations
|
|
* Shippable servers in maintenance
|
|
* Zakazníci
|