Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[refactor] #251 - Jenkinsfile에 자동으로 호스트 키를 신뢰하도록 옵션 추가 #253

Merged
merged 3 commits into from
Nov 21, 2024
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
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ pipeline {

// Jenkins 서버에서 원격 서버로 파일 복사
sh """
scp -i ${KEY_FILE} /home/ubuntu/deployment/deploy-${OPERATION_ENV}.sh ${USERNAME}@${HOST}:/home/ubuntu/deployment
scp -i ${KEY_FILE} /home/ubuntu/nginx.conf ${USERNAME}@${HOST}:/home/ubuntu
scp -o StrictHostKeyChecking=no -i ${KEY_FILE} /home/ubuntu/deployment/deploy-${OPERATION_ENV}.sh ${USERNAME}@${HOST}:/home/ubuntu/deployment
scp -o StrictHostKeyChecking=no -i ${KEY_FILE} /home/ubuntu/nginx.conf ${USERNAME}@${HOST}:/home/ubuntu
"""

// 환경변수를 넘기고 deploy.sh 실행
Expand Down
Loading