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:
@@ -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:"
|
||||||
|
|||||||
@@ -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:"
|
||||||
|
|||||||
Reference in New Issue
Block a user