From 820b2f0d8dd5585230ca8249220971bd409ed856 Mon Sep 17 00:00:00 2001 From: rlarltj Date: Mon, 23 Sep 2024 00:54:27 +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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 4d83b8c..9e4a995 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -31,11 +31,11 @@ jobs: - name: Send env file uses: appleboy/scp-action@master with: - username: ec2-user + username: root host: ${{ secrets.AWS_DEV_IP }} key: ${{ secrets.AWS_PASSWORD }} source: "./.env" - target: "/home/ubuntu" + target: "/home" # 빌드 - name: Build with Gradle @@ -57,7 +57,7 @@ jobs: key: ${{ secrets.AWS_PASSWORD }} port: 22 source: "./.docker/docker-compose.yml" - target: "/home/ubuntu/" + target: "/home" # 도커 컴포즈 실행 - name: Deploy to Dev @@ -67,8 +67,8 @@ jobs: host: ${{ secrets.AWS_DEV_IP }} key: ${{ secrets.AWS_PASSWORD }} script: | - sudo cp /home/ubuntu/.docker/docker-compose.yml /home/ubuntu - cd /home/ubuntu + sudo cp /home/.docker/docker-compose.yml /home + cd /home sudo docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }} docker-compose up -d docker image prune -f