From 194d9c5e72fd492516ccb6a4c3414c0cea408871 Mon Sep 17 00:00:00 2001 From: rlarltj Date: Thu, 5 Sep 2024 00:55:58 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20aws=EB=A1=9C=20=EC=84=9C=EB=B2=84?= =?UTF-8?q?=EB=A5=BC=20=EC=9D=B4=EA=B4=80=ED=95=9C=EB=8B=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5042da6..be0253c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - deploy/** # 권한 설정 permissions: @@ -37,8 +38,8 @@ jobs: uses: appleboy/scp-action@master with: username: root - host: ${{ secrets.NCP_DEV_IP }} - password: ${{ secrets.NCP_PASSWORD }} + host: ${{ secrets.AWS_DEV_IP }} + key: ${{ secrets.AWS_PASSWORD }} source: "./.env" target: "/home" @@ -57,9 +58,9 @@ jobs: - name: Send docker-compose.yml uses: appleboy/scp-action@master with: - username: root - host: ${{ secrets.NCP_DEV_IP }} - password: ${{ secrets.NCP_PASSWORD }} + username: ec2-user + host: ${{ secrets.AWS_DEV_IP }} + key: ${{ secrets.AWS_PASSWORD }} port: 22 source: "./.docker/docker-compose.yml" target: "/home" @@ -68,9 +69,9 @@ jobs: - name: Deploy uses: appleboy/ssh-action@master with: - username: root - host: ${{ secrets.NCP_DEV_IP }} - password: ${{ secrets.NCP_PASSWORD }} + username: ec2-user + host: ${{ secrets.AWS_DEV_IP }} + key: ${{ secrets.AWS_PASSWORD }} script: | cp /home/.docker/docker-compose.yml /home cd /home