diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 3b03cc6..fd3014d 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -4,6 +4,7 @@ on: push: branches: - dev + - feat/** # 권한 설정 permissions: @@ -31,8 +32,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/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