From 36c43fb70ccf383f3e56f235daeab95a30989d3b Mon Sep 17 00:00:00 2001 From: Sookyung Kang Date: Tue, 16 Apr 2024 02:44:30 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9A=A1=EF=B8=8F:=20fix=20CodeDeploy=20?= =?UTF-8?q?=EC=9E=90=EB=8F=99=20=EB=B0=B0=ED=8F=AC=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=20#40?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit appspec.yml 중복 오류 문제 --- scripts/plu-api/appspec.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/plu-api/appspec.yml b/scripts/plu-api/appspec.yml index 8d5895b..1c18627 100644 --- a/scripts/plu-api/appspec.yml +++ b/scripts/plu-api/appspec.yml @@ -5,6 +5,8 @@ files: destination: /home/ubuntu/plu-api overwrite: yes +file_exists_behavior: OVERWRITE + permissions: - object: /home/ubuntu pattern: "**" From 30fb30639c00be6e0bd998a77be64b6e45578054 Mon Sep 17 00:00:00 2001 From: sookyung kang Date: Tue, 16 Apr 2024 03:05:41 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=E2=9A=A1=EF=B8=8F:=20fix=20actions=20s3=20?= =?UTF-8?q?=ED=8C=8C=EC=9D=BC=20=EC=88=98=EC=A0=95=EB=B3=B8=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EC=88=98=EC=A0=95=20#40?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/api-deploy-dev.yml | 4 ++-- .github/workflows/api-deploy-prod.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/api-deploy-dev.yml b/.github/workflows/api-deploy-dev.yml index a49ea0a..125cb9d 100644 --- a/.github/workflows/api-deploy-dev.yml +++ b/.github/workflows/api-deploy-dev.yml @@ -48,7 +48,7 @@ jobs: shell: bash - name: Make zip file - run: zip -r ./api-code-deploy.zip ./plu-api/build/libs/*.jar ./scripts/plu-api/* -j + run: zip -r ./api-code-deploy2.zip ./plu-api/build/libs/*.jar ./scripts/plu-api/* -j shell: bash - name: Configure AWS credentials @@ -59,7 +59,7 @@ jobs: aws-region: ap-northeast-2 - name: Upload to S3 - run: aws s3 cp --region ap-northeast-2 ./api-code-deploy.zip s3://$AWS_S3_BUCKET/api-code-deploy.zip + run: aws s3 cp --region ap-northeast-2 ./api-code-deploy.zip s3://$AWS_S3_BUCKET/api-code-deploy2.zip - name: Code Deploy run: aws deploy create-deployment diff --git a/.github/workflows/api-deploy-prod.yml b/.github/workflows/api-deploy-prod.yml index 29e7cb2..5978fa6 100644 --- a/.github/workflows/api-deploy-prod.yml +++ b/.github/workflows/api-deploy-prod.yml @@ -48,7 +48,7 @@ jobs: shell: bash - name: Make zip file - run: zip -r ./api-code-deploy.zip ./plu-api/build/libs/*.jar ./scripts/plu-api/* -j + run: zip -r ./api-code-deploy2.zip ./plu-api/build/libs/*.jar ./scripts/plu-api/* -j shell: bash - name: Configure AWS credentials @@ -59,7 +59,7 @@ jobs: aws-region: ap-northeast-2 - name: Upload to S3 - run: aws s3 cp --region ap-northeast-2 ./api-code-deploy.zip s3://$AWS_S3_BUCKET/api-code-deploy.zip + run: aws s3 cp --region ap-northeast-2 ./api-code-deploy2.zip s3://$AWS_S3_BUCKET/api-code-deploy.zip - name: Code Deploy run: aws deploy create-deployment