Skip to content

Commit 369f4f6

Browse files
committed
RELEASE: rollback 빌드 완전히 후에 s3에 올리기
1 parent e5b8dc4 commit 369f4f6

File tree

1 file changed

+10
-89
lines changed

1 file changed

+10
-89
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -166,27 +166,6 @@ jobs:
166166
--policy file://scripts/s3-bucket-policy.json
167167
echo "✅ S3 bucket policy configured successfully!"
168168
169-
# --- CloudFront 설정 확인 ---
170-
- name: Check CloudFront Configuration
171-
run: |
172-
echo "🔍 Checking CloudFront configuration..."
173-
chmod +x scripts/check-cloudfront-config.sh
174-
./scripts/check-cloudfront-config.sh
175-
176-
# --- 빌드 파일 구조 확인 ---
177-
- name: Debug Build Files Structure
178-
run: |
179-
echo "🔍 Analyzing build files structure..."
180-
cd togather-client
181-
node scripts/debug-build-files.js
182-
183-
# --- CloudFront Behavior 설정 확인 ---
184-
- name: Check CloudFront Behaviors
185-
run: |
186-
echo "🔍 Checking CloudFront behaviors..."
187-
cd togather-client
188-
node scripts/setup-cloudfront-behaviors.js
189-
190169
# --- S3 정적 자산 업로드 (Docker 빌드 완료 후) ---
191170
- name: Upload Static Assets to S3 (Priority)
192171
run: |
@@ -468,80 +447,22 @@ jobs:
468447
done
469448
echo "✅ Prewarm completed!"
470449
471-
# --- 성능 테스트 ---
472-
- name: Performance Test
473-
if: github.ref == 'refs/heads/main'
474-
run: |
475-
echo "🚀 Running performance test..."
476-
cd togather-client
477-
SITE_URL="https://xn--o79aq2k062a.store" node scripts/debug-response-times.js
478450
479-
# --- 전체 배포 상태 진단 ---!
480-
- name: Deployment Health Check
451+
# --- 간단한 배포 상태 확인 ---
452+
- name: Quick Deployment Check
481453
if: always()
482454
run: |
483-
echo "🔍 Final Deployment Health Check"
484-
echo "================================="
485-
486-
# EKS 클러스터 상태 확인
487-
echo "📊 EKS Cluster Status:"
488-
kubectl get nodes -o wide || echo "❌ Failed to get nodes"
489-
490-
# 네임스페이스 상태 확인
491-
echo "📊 Namespace Status:"
492-
kubectl get ns ${{ env.EKS_NAMESPACE }} || echo "❌ Failed to get namespace"
493-
494-
# 모든 Pod 상태 확인
495-
echo "📊 Pod Status:"
496-
kubectl get pods -n ${{ env.EKS_NAMESPACE }} -o wide || echo "❌ Failed to get pods"
497-
498-
# 서비스 상태 확인
499-
echo "📊 Service Status:"
500-
kubectl get svc -n ${{ env.EKS_NAMESPACE }} || echo "❌ Failed to get services"
501-
502-
# 실패한 Pod 상세 정보
503-
echo "📊 Failed Pods Details:"
504-
kubectl get pods -n ${{ env.EKS_NAMESPACE }} --field-selector=status.phase!=Running -o wide || echo "No failed pods"
505-
506-
# 이벤트 확인
507-
echo "📊 Recent Events:"
508-
kubectl get events -n ${{ env.EKS_NAMESPACE }} --sort-by='.lastTimestamp' | tail -20 || echo "❌ Failed to get events"
455+
echo "🔍 Quick Deployment Check"
456+
echo "========================"
457+
kubectl get pods -n ${{ env.EKS_NAMESPACE }} || echo "❌ Failed to get pods"
509458
510-
# --- 에러 발생 시 상세 진단 ---
511-
- name: Detailed Error Diagnostics
459+
# --- 에러 발생 시 간단한 진단 ---
460+
- name: Quick Error Diagnostics
512461
if: failure()
513462
run: |
514-
echo "🚨 DEPLOYMENT FAILED - Running detailed diagnostics..."
515-
echo "====================================================="
516-
517-
# 실패한 디플로이먼트 상세 정보
518-
echo "🔍 Failed Deployments:"
519-
kubectl get deploy -n ${{ env.EKS_NAMESPACE }} || echo "❌ Failed to get deployments"
520-
521-
# 각 서비스별 상세 로그
522-
for svc in api-gateway user-service trading-service pay-service vote-service nextjs-client; do
523-
echo "📋 $svc Logs:"
524-
POD=$(kubectl get pods -n ${{ env.EKS_NAMESPACE }} -l app=$svc -o jsonpath='{.items[0].metadata.name}' 2>/dev/null || echo "")
525-
if [ -n "$POD" ]; then
526-
kubectl describe pod $POD -n ${{ env.EKS_NAMESPACE }} || echo "❌ Failed to describe pod $POD"
527-
kubectl logs $POD -n ${{ env.EKS_NAMESPACE }} --tail=50 || echo "❌ Failed to get logs for $POD"
528-
else
529-
echo "❌ No pod found for $svc"
530-
fi
531-
echo "---"
532-
done
533-
534-
# Ingress 상태
535-
echo "🔍 Ingress Status:"
536-
kubectl get ingress -n ${{ env.EKS_NAMESPACE }} || echo "❌ Failed to get ingress"
537-
538-
# ConfigMap 상태
539-
echo "🔍 ConfigMap Status:"
540-
kubectl get configmap -n ${{ env.EKS_NAMESPACE }} || echo "❌ Failed to get configmaps"
541-
542-
# Secret 상태 (민감 정보 제외)
543-
echo "🔍 Secret Status:"
544-
kubectl get secret -n ${{ env.EKS_NAMESPACE }} || echo "❌ Failed to get secrets"
463+
echo "🚨 DEPLOYMENT FAILED - Quick diagnostics..."
464+
kubectl get pods -n ${{ env.EKS_NAMESPACE }} || echo "❌ Failed to get pods"
465+
kubectl get events -n ${{ env.EKS_NAMESPACE }} --sort-by='.lastTimestamp' | tail -10 || echo "❌ Failed to get events"
545466
546467
547468
#name: Deploy ToGather Microservices to AWS EKS

0 commit comments

Comments
 (0)