Skip to content

Commit c5811ec

Browse files
authored
Update deploy.yml
1 parent e19d928 commit c5811ec

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ jobs:
2121
- name: Set up application.yml
2222
run: echo "${{ secrets.APPLICATION }}" > ./src/main/resources/application.yml
2323

24+
# SSH 키 복사
25+
- name: Create SSH Key File
26+
run: echo "${{ secrets.PRIVATE_KEY }}" > /tmp/private_key.pem
27+
2428
- name: Set Permissions for SSH Key
2529
run: chmod 600 /tmp/private_key.pem
2630

27-
- name: Copy keystore.p12 from EC2
28-
run: scp -o StrictHostKeyChecking=no -i /tmp/private_key.pem ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }}:/home/${{ secrets.EC2_USER }}/keystore.p12 ./src/main/resources/keystore.p12
29-
3031
# 도커 로그인
3132
- name: Docker Login
3233
uses: docker/[email protected]

0 commit comments

Comments
 (0)