Skip to content

Commit

Permalink
⚡️: fix actions s3 파일 수정 반영 #44
Browse files Browse the repository at this point in the history
  • Loading branch information
sookyungg committed Apr 15, 2024
1 parent e61df47 commit 4df9339
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/notification-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
shell: bash

- name: Make zip file
run: zip -r ./notification-code-deploy.zip ./plu-notification/build/libs/*.jar ./scripts/plu-notification/* -j
run: zip -r ./notification-code-deploy2.zip ./plu-notification/build/libs/*.jar ./scripts/plu-notification/* -j
shell: bash

- name: Configure AWS credentials
Expand All @@ -70,11 +70,11 @@ jobs:
aws-region: ap-northeast-2

- name: Upload to S3
run: aws s3 cp --region ap-northeast-2 ./notification-code-deploy.zip s3://$AWS_S3_BUCKET/notification-code-deploy.zip
run: aws s3 cp --region ap-northeast-2 ./notification-code-deploy2.zip s3://$AWS_S3_BUCKET/notification-code-deploy2.zip

- name: Code Deploy
run: aws deploy create-deployment
--application-name plu-application
--deployment-config-name CodeDeployDefault.OneAtATime
--deployment-group-name NOTIFICATION
--s3-location bucket=$AWS_S3_BUCKET,bundleType=zip,key=notification-code-deploy.zip
--s3-location bucket=$AWS_S3_BUCKET,bundleType=zip,key=notification-code-deploy2.zip
6 changes: 3 additions & 3 deletions .github/workflows/notification-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
shell: bash

- name: Make zip file
run: zip -r ./notification-code-deploy.zip ./plu-notification/build/libs/*.jar ./scripts/plu-notification/* -j
run: zip -r ./notification-code-deploy2.zip ./plu-notification/build/libs/*.jar ./scripts/plu-notification/* -j
shell: bash

- name: Configure AWS credentials
Expand All @@ -65,11 +65,11 @@ jobs:
aws-region: ap-northeast-2

- name: Upload to S3
run: aws s3 cp --region ap-northeast-2 ./notification-code-deploy.zip s3://$AWS_S3_BUCKET/notification-code-deploy.zip
run: aws s3 cp --region ap-northeast-2 ./notification-code-deploy2.zip s3://$AWS_S3_BUCKET/notification-code-deploy2.zip

- name: Code Deploy
run: aws deploy create-deployment
--application-name plu-application
--deployment-config-name CodeDeployDefault.OneAtATime
--deployment-group-name NOTIFICATION
--s3-location bucket=$AWS_S3_BUCKET,bundleType=zip,key=notification-code-deploy.zip
--s3-location bucket=$AWS_S3_BUCKET,bundleType=zip,key=notification-code-deploy2.zip
2 changes: 2 additions & 0 deletions scripts/plu-notification/appspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ files:
destination: /home/ubuntu/plu-notification
overwrite: yes

file_exists_behavior: OVERWRITE

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

0 comments on commit 4df9339

Please sign in to comment.