From 70c4c78a6ba2d92c4ed77f47e42be6521ecc3b60 Mon Sep 17 00:00:00 2001 From: juchan204 Date: Wed, 4 Dec 2024 10:36:13 +0900 Subject: [PATCH] =?UTF-8?q?MATE-85=20:=20[FIX]=20deploy.yml=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EB=B3=80=EA=B2=BD=20-=201.=20EC2=EC=97=90=EC=84=9C?= =?UTF-8?q?=20=EC=A7=81=EC=A0=91=20=EB=B9=8C=EB=93=9C=ED=95=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EA=B3=A0,=20GitHub=20Actions=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EB=B9=8C=EB=93=9C=ED=95=9C=20jar=20=ED=8C=8C=EC=9D=BC=EC=9D=84?= =?UTF-8?q?=20EC2=EB=A1=9C=20=EC=A0=84=EC=86=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c3e5e242..6b7b8fdb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -36,18 +36,13 @@ jobs: host: ${{ secrets.EC2_HOST }} username: ${{ secrets.EC2_USERNAME }} key: ${{ secrets.EC2_PRIVATE_KEY }} - envs: | - APPLICATION_PROPERTIES - NAVER_CLIENT_ID - NAVER_REDIRECT_URI - NAVER_CLIENT_SECRET - JWT_SECRET_KEY - OPENWEATHER_API_KEY + source: "build/libs/*SNAPSHOT.jar" + target: "/home/ubuntu/WEB1_2_PitchingMate_BE" + strip_components: 2 + envs: APPLICATION_PROPERTIES script_stop: true script: | cd /home/ubuntu/WEB1_2_PitchingMate_BE - git pull origin develop echo "$APPLICATION_PROPERTIES" > src/main/resources/application-dev.yml - ./gradlew clean build sudo fuser -k -n tcp 8080 || true - nohup java -jar build/libs/*SNAPSHOT.jar > ./output.log 2>&1 & \ No newline at end of file + nohup java -jar *SNAPSHOT.jar > ./output.log 2>&1 & \ No newline at end of file