diff --git a/.github/workflows/notification-deploy-dev.yml b/.github/workflows/notification-deploy-dev.yml index 5832aa8..4a5c1a5 100644 --- a/.github/workflows/notification-deploy-dev.yml +++ b/.github/workflows/notification-deploy-dev.yml @@ -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 @@ -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 \ No newline at end of file + --s3-location bucket=$AWS_S3_BUCKET,bundleType=zip,key=notification-code-deploy2.zip \ No newline at end of file diff --git a/.github/workflows/notification-deploy-prod.yml b/.github/workflows/notification-deploy-prod.yml index 151cee4..71b7ea0 100644 --- a/.github/workflows/notification-deploy-prod.yml +++ b/.github/workflows/notification-deploy-prod.yml @@ -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 @@ -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 \ No newline at end of file + --s3-location bucket=$AWS_S3_BUCKET,bundleType=zip,key=notification-code-deploy2.zip \ No newline at end of file diff --git a/scripts/plu-notification/appspec.yml b/scripts/plu-notification/appspec.yml index 475ca02..033423c 100644 --- a/scripts/plu-notification/appspec.yml +++ b/scripts/plu-notification/appspec.yml @@ -5,6 +5,8 @@ files: destination: /home/ubuntu/plu-notification overwrite: yes +file_exists_behavior: OVERWRITE + permissions: - object: /home/ubuntu pattern: "**"