fix: Verbessere Staging Deployment - Code-Synchronisation

- Aktualisiere docker-compose.yml immer aus Repository
- Starte staging-app Container neu für Git-Pull
- Unterstütze mehrere Image-URL-Formate in sed-Replacements
- Füge Wartezeiten für Git-Sync hinzu
- Behebt Problem, dass Code nicht synchronisiert wurde
This commit is contained in:
2025-11-01 20:57:33 +01:00
parent 8381651876
commit 9e34c0b474
2 changed files with 14 additions and 0 deletions

View File

@@ -881,6 +881,13 @@ jobs:
} }
echo "⏳ Waiting for services to start..." echo "⏳ Waiting for services to start..."
sleep 15
# Force containers to pull latest code by restarting staging-app
echo "🔄 Restarting staging-app to pull latest code from Git..."
docker compose restart staging-app || echo "⚠️ Failed to restart staging-app"
echo "⏳ Waiting for Git sync to complete..."
sleep 10 sleep 10
echo "📊 Container status:" echo "📊 Container status:"

View File

@@ -161,6 +161,13 @@ jobs:
} }
echo "⏳ Waiting for services to start..." echo "⏳ Waiting for services to start..."
sleep 15
# Force containers to pull latest code by restarting staging-app
echo "🔄 Restarting staging-app to pull latest code from Git..."
docker compose restart staging-app || echo "⚠️ Failed to restart staging-app"
echo "⏳ Waiting for Git sync to complete..."
sleep 10 sleep 10
echo "📊 Container status:" echo "📊 Container status:"