Skip to content

Commit

Permalink
Merge pull request #41 from Team-Plu/fix/#40
Browse files Browse the repository at this point in the history
[FIX] CodeDeploy 자동 배포 오류  #40
  • Loading branch information
sookyungg authored Apr 15, 2024
2 parents 3710675 + 30fb306 commit 64d5c11
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/api-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/api-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions scripts/plu-api/appspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ files:
destination: /home/ubuntu/plu-api
overwrite: yes

file_exists_behavior: OVERWRITE

permissions:
- object: /home/ubuntu
pattern: "**"
Expand Down

0 comments on commit 64d5c11

Please sign in to comment.