We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a1876d5 + 1d12106 commit 35c909bCopy full SHA for 35c909b
.github/workflows/cd.yml
@@ -68,9 +68,17 @@ jobs:
68
if curl -s http://localhost:$TARGET_PORT/health | grep "ok" > /dev/null; then
69
echo "✅ Health check passed. Switching traffic..."
70
71
- # Nginx 심볼릭 링크 교체
72
- cp $TARGET_CONF /opt/app/nginx/default.conf
+ # 심볼릭 링크 변경
+ ln -sf $TARGET_CONF /opt/app/nginx/default.conf
73
+ echo "🔁 Linked $TARGET_CONF to default.conf"
74
+
75
+ # 컨테이너 내부로 설정 파일 복사
76
+ docker cp /opt/app/nginx/default.conf nginx-proxy:/etc/nginx/conf.d/default.conf
77
+ echo "📄 Copied default.conf to nginx container"
78
79
+ # Nginx reload
80
docker exec nginx-proxy nginx -s reload
81
+ echo "🔄 Nginx config reloaded"
82
83
# 이전 컨테이너 제거
84
if [ "$TARGET_COLOR" = "blue" ]; then
0 commit comments