From 81e5037002e57bd1a45b076740baf219819e9e30 Mon Sep 17 00:00:00 2001 From: KIM HYUN GI Date: Mon, 27 Nov 2023 00:17:31 +0900 Subject: [PATCH] chore : CD update --- .github/workflows/CD.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 53eee89..5e72ee3 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -32,7 +32,12 @@ jobs: remote_key: ${{ secrets.AWS_GENERAL_SSH_KEY }} - name: Copy .env to remote server - run: scp .env ubuntu@${{ secrets.APP_SERVER_IP }}:/home/ubuntu/app/petlink/ + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.APP_SERVER_IP }} + username: ubuntu + key: ${{ secrets.AWS_GENERAL_SSH_KEY }} + script: scp .env ubuntu@${{ secrets.APP_SERVER_IP }}:/home/ubuntu/app/petlink/