From 60647d264bf0b53a263f74de0bee572f44163718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EC=A7=80=ED=98=81?= Date: Tue, 3 Sep 2024 15:51:09 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20SSL=20=EC=8A=A4=ED=81=AC=EB=A6=BD?= =?UTF-8?q?=ED=8A=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 70c3516..34ff6d0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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