We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81c1383 commit 05b1745Copy full SHA for 05b1745
.github/workflows/cicd.yml
@@ -78,10 +78,11 @@ jobs:
78
run: |
79
EC2_PUBLIC_IP=$(cat ec2_public_ip.txt)
80
81
- ssh -o StrictHostKeyChecking=no -i ssh_key.pem ubuntu@$EC2_PUBLIC_IP << 'EOF'
+ ssh -o StrictHostKeyChecking=no -i ssh_key.pem ubuntu@$EC2_PUBLIC_IP << EOF
82
+ #!/bin/bash
83
84
echo "🔍 현재 실행 중인 포트 확인"
- ACTIVE_PORT=\$(docker ps --format "{{.Ports}}" | grep -oE '808[12]' | head -n 1)
85
+ ACTIVE_PORT=$(docker ps --format "{{.Ports}}" | grep -oE '808[12]' | head -n 1)
86
87
if [ "\$ACTIVE_PORT" == "8081" ]; then
88
NEW_PORT=8082
@@ -111,3 +112,4 @@ jobs:
111
112
113
echo "✅ 배포 완료. 현재 활성 컨테이너: spoony-dev-\$NEW_PORT"
114
EOF
115
+
0 commit comments