updated deploy Script [deploy]
Some checks failed
Deploy Discord Bot / deploy (push) Failing after 13s
Some checks failed
Deploy Discord Bot / deploy (push) Failing after 13s
This commit is contained in:
18
deploy.sh
Normal file
18
deploy.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
cd /opt/Papo
|
||||
|
||||
echo "[DEPLOY] Hole aktuellen Stand aus Gitea..."
|
||||
git fetch --all
|
||||
git reset --hard origin/main
|
||||
|
||||
echo "[DEPLOY] Baue und starte Docker-Stack neu..."
|
||||
docker compose pull || true
|
||||
docker compose build
|
||||
docker compose up -d
|
||||
|
||||
echo "[DEPLOY] Aufräumen..."
|
||||
docker image prune -f
|
||||
|
||||
echo "[DEPLOY] Fertig."
|
||||
Reference in New Issue
Block a user