26 lines
551 B
Bash
Executable File
26 lines
551 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
echo "[CI] Starte Deploy-Prozess für Volleyball CMS..."
|
|
|
|
# Sicherstellen, dass wir im richtigen Verzeichnis sind
|
|
CI_ROOT=$(pwd)
|
|
echo "[CI] Arbeitsverzeichnis: $CI_ROOT"
|
|
|
|
# Optional: Submodules nochmal aktualisieren (zur Sicherheit)
|
|
git submodule update --init --recursive
|
|
|
|
echo "[CI] Pull Backend..."
|
|
cd backend
|
|
git pull origin main
|
|
|
|
echo "[CI] Pull Frontend..."
|
|
cd ../
|
|
git pull origin main
|
|
|
|
echo "[CI] Docker Compose Build & Restart..."
|
|
docker compose down
|
|
docker compose up --build -d
|
|
|
|
echo "[CI] ✅ Deployment abgeschlossen!"
|