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: | 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 &