fix: resolve Nginx 503 error on rollback and apply package refactoring
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 11m44s

This commit is contained in:
jade
2026-07-24 15:00:01 +09:00
parent 4ed534b1d6
commit 9066c621a0
126 changed files with 303 additions and 299 deletions

View File

@@ -92,6 +92,10 @@ jobs:
if [ -z "$IS_TARGET_ALIVE" ]; then
echo "Health Check Failed! $TARGET container crashed. Rollback."
echo "Rolling back Nginx config to $OLD_TARGET..."
cp ./nginx/${OLD_TARGET}.conf ./nginx/conf.d/default.conf
echo "Restarting Nginx to apply rollback..."
docker compose restart nginx || true
echo "Stopping failed $TARGET containers..."
docker compose stop gateway-$TARGET tool-sms-$TARGET tool-email-$TARGET tool-other-$TARGET tool-payment-$TARGET
exit 1 # 파이프라인 실패 처리 (구버전은 그대로 유지됨)