From a5f7255dda594967802a195c7584651bb3080eef Mon Sep 17 00:00:00 2001 From: sh1220 <61071228+sh1220@users.noreply.github.com> Date: Thu, 11 Jul 2024 18:46:18 +0900 Subject: [PATCH 1/2] Update deploy.sh --- scripts/deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 11a40c2..d21d018 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -3,7 +3,7 @@ REPOSITORY=/home/ubuntu/IT-Pick-Backend cd $REPOSITORY -APP_NAME=moduform +APP_NAME=Backend JAR_NAME=$(ls $REPOSITORY/build/libs/ | grep 'SNAPSHOT.jar' | tail -n 1) JAR_PATH=$REPOSITORY/build/libs/$JAR_NAME @@ -19,4 +19,4 @@ else fi echo "> Deploy - $JAR_PATH " -nohup java -jar $JAR_PATH > /dev/null 2> /dev/null < /dev/null & \ No newline at end of file +nohup java -jar $JAR_PATH > /dev/null 2> /dev/null < /dev/null & From 272446e5eb44db81b13d6e1968eee7d72acc981a Mon Sep 17 00:00:00 2001 From: sh1220 <61071228+sh1220@users.noreply.github.com> Date: Thu, 11 Jul 2024 19:12:10 +0900 Subject: [PATCH 2/2] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 75752b9..a967cf8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -53,7 +53,7 @@ jobs: # 빌드 결과물 S3 버킷에 업로드 - name: upload to AWS S3 - run: aws s3 sync --delete --region $AWS_REGION ./build s3://$S3_BUCKET_NAME + run: aws s3 cp --region ap-northeast-2 ./$GITHUB_SHA.zip s3://$BUCKET_NAME/$PROJECT_NAME/$GITHUB_SHA.zip - name: deploy with AWS codeDeploy run: |