Skip to content

Commit

Permalink
mod::서버 호스트 키를 known_hosts에 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjh02 authored Dec 2, 2024
1 parent dc2a9ae commit a10d591
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ jobs:
run: |
echo "$SSH_PRIVATE_KEY" > private_key.pem
chmod 600 private_key.pem
# 서버 호스트 키를 known_hosts에 추가
mkdir -p ~/.ssh
ssh-keyscan -H $HOST >> ~/.ssh/known_hosts
# 프로젝트 전송
scp -i private_key.pem -r ./* $USER@$HOST:/home/$USER/app/
# SSH 접속하여 Docker Compose 실행
Expand Down

0 comments on commit a10d591

Please sign in to comment.