Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] actions s3 파일 수정 반영 #44 #45

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading