Skip to content

Commit

Permalink
Fix: SSL 스크립트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
pjh5365 authored Sep 3, 2024
1 parent 7835b70 commit 60647d2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,14 @@ jobs:
echo "${{ secrets.APPLICATION_TEST }}" > ./src/main/resources/application-test.yml
# SSL 적용
- name: Create SSH Key File
run: echo "${{ secrets.PRIVATE_KEY }}" > /tmp/private_key.pem

- name: Set Permissions for SSH Key
run: chmod 600 /tmp/private_key.pem

- name: Copy keystore.p12 from EC2
run: |
scp -i ${{ secrets.PRIVATE_KEY }} ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }}:/home/${{ secrets.EC2_USER }}/keystore.p12 ./src/main/resources/keystore.p12
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

# 도커 이미지 빌드용 환경 세팅 및 도커 이미지 빌드
- name: set up test DB and docker build
Expand Down

0 comments on commit 60647d2

Please sign in to comment.