From 8d7fd5f1735fd86c619e0c93856e10e7bf2c48ef Mon Sep 17 00:00:00 2001 From: jaham Date: Sat, 21 Oct 2023 02:53:55 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20dev=20deploy=20github=20action?= =?UTF-8?q?=20=EC=97=90=EC=84=9C=20branch=20=EB=A5=BC=20=EC=84=A4=EC=A0=95?= =?UTF-8?q?=ED=95=98=EC=A7=80=20=EC=95=8A=EC=9D=80=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 그냥 새로 clone 받게 했습니다. --- .github/workflows/deploy-dev.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index a4e82092..92a7e19a 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -18,12 +18,12 @@ jobs: username: ${{ secrets.EC2_USER }} key: ${{ secrets.EC2_SSH_KEY }} script: | - echo "move to repository" - cd $HOME/42Stat-Backend - echo "pull" - git pull origin dev - echo "env update" - git submodule update --remote - echo "run docker" - docker-compose -f docker-compose.dev.yml down -v + cd $HOME && + echo "clone repository" && + sudo rm -rf ./42Stat-Backend && + git clone https://github.com/42Statistics/42Stat-Backend.git && + cd 42Stat-Backend && + git switch dev && + echo "run docker" && + docker-compose -f docker-compose.dev.yml down -v && docker-compose -f docker-compose.dev.yml up -d