From 343316ddc13b2cc2464264a0a05e5c955024b935 Mon Sep 17 00:00:00 2001 From: rlarltj Date: Mon, 23 Sep 2024 00:23:38 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20dev=20=EC=84=9C=EB=B2=84=EB=A5=BC=20aws?= =?UTF-8?q?=EB=A1=9C=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-dev.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 3b03cc6..4d83b8c 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -4,6 +4,7 @@ on: push: branches: - dev + - feat/** # 권한 설정 permissions: @@ -30,9 +31,9 @@ jobs: - name: Send env file 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 }} source: "./.env" target: "/home/ubuntu" @@ -51,9 +52,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/ubuntu/" @@ -62,9 +63,9 @@ jobs: - name: Deploy to Dev 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: | sudo cp /home/ubuntu/.docker/docker-compose.yml /home/ubuntu cd /home/ubuntu