fix(deploy): SSH 호스트 IP 동적 감지 + health check 개선 (#45)
Some checks failed
Deploy KCG / deploy (push) Failing after 1m6s
Some checks failed
Deploy KCG / deploy (push) Failing after 1m6s
Co-authored-by: htlee <htlee@gcsc.co.kr> Co-committed-by: htlee <htlee@gcsc.co.kr>
This commit is contained in:
부모
1549adafc7
커밋
db8334b08e
@ -89,8 +89,8 @@ jobs:
|
||||
mkdir -p ~/.ssh
|
||||
echo "$DEPLOY_KEY" > ~/.ssh/id_deploy
|
||||
chmod 600 ~/.ssh/id_deploy
|
||||
# Docker 컨테이너 → 호스트: bridge gateway(172.17.0.1) 경유
|
||||
DOCKER_HOST_IP=172.17.0.1
|
||||
# Docker 컨테이너 → 호스트: services_devnet gateway 경유
|
||||
DOCKER_HOST_IP=$(ip route | awk '/default/ {print $3}')
|
||||
ssh-keyscan $DOCKER_HOST_IP >> ~/.ssh/known_hosts 2>/dev/null || true
|
||||
|
||||
SSH_CMD="ssh -i ~/.ssh/id_deploy -o StrictHostKeyChecking=no root@$DOCKER_HOST_IP"
|
||||
|
||||
불러오는 중...
Reference in New Issue
Block a user