We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c79778d commit 4e3667eCopy full SHA for 4e3667e
1 file changed
.github/workflows/docker-deploy.yml
@@ -52,9 +52,10 @@ jobs:
52
- name: Deploy to EC2
53
run: |
54
# SSH 키 설정
55
- mkdir -p ~/.ssh
56
- printf "%s" "${{ secrets.EC2_SSH_KEY }}" > ~/.ssh/studyfy-server.pem
57
- chmod 600 ~/.ssh/studyfy-server.pem
+ mkdir -p ~/.ssh # .ssh 디렉터리 생성
+ printf "%s" "${{ secrets.EC2_SSH_KEY }}" > ~/.ssh/studyfy-server.pem # PEM 키 파일 생성
+ chmod 600 ~/.ssh/studyfy-server.pem # 적절한 권한 설정 (보안 상 필수)
58
+
59
60
# EC2에 Docker 이미지를 배포하는 과정입니다.
61
ssh -o StrictHostKeyChecking=no -i ~/.ssh/studyfy-server.pem ubuntu@${{ secrets.EC2_PUBLIC_IP }} << 'EOF'
0 commit comments