Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,17 @@ jobs:
if curl -s http://localhost:$TARGET_PORT/health | grep "ok" > /dev/null; then
echo "✅ Health check passed. Switching traffic..."

# Nginx 심볼릭 링크 교체
cp $TARGET_CONF /opt/app/nginx/default.conf
# 심볼릭 링크 변경
ln -sf $TARGET_CONF /opt/app/nginx/default.conf
echo "🔁 Linked $TARGET_CONF to default.conf"

# 컨테이너 내부로 설정 파일 복사
docker cp /opt/app/nginx/default.conf nginx-proxy:/etc/nginx/conf.d/default.conf
echo "📄 Copied default.conf to nginx container"

# Nginx reload
docker exec nginx-proxy nginx -s reload
echo "🔄 Nginx config reloaded"

# 이전 컨테이너 제거
if [ "$TARGET_COLOR" = "blue" ]; then
Expand Down