Skip to content

Commit

Permalink
Merge pull request #53 from Happy-HOBAK/chore/#52
Browse files Browse the repository at this point in the history
[#52] Code Deploy 구축
  • Loading branch information
KkomSang authored May 5, 2024
2 parents ff2fc10 + d6cda04 commit 677bc4e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 65 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,7 @@ jobs:
aws-region: ${{ secrets.AWS_REGION }}

- name: Upload to S3
run: aws s3 cp --region ap-northeast-2 ./$GITHUB_SHA.zip s3://$S3_BUCKET_NAME/$PROJECT_NAME/$GITHUB_SHA.zip
run: aws s3 cp --region ap-northeast-2 ./$GITHUB_SHA.zip s3://$S3_BUCKET_NAME/$PROJECT_NAME/$GITHUB_SHA.zip

- name: Code Deploy
run: aws deploy create-deployment --application-name happinessql-deploy --deployment-config-name CodeDeployDefault.AllAtOnce --deployment-group-name develop --s3-location bucket=$S3_BUCKET_NAME,bundleType=zip,key=$PROJECT_NAME/$GITHUB_SHA.zip
1 change: 0 additions & 1 deletion .platform/conf.d/client_max_body_size.conf

This file was deleted.

63 changes: 0 additions & 63 deletions .platform/nginx.conf

This file was deleted.

12 changes: 12 additions & 0 deletions appspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 0.0
os: linux
files:
- source: /
destination: /home/ec2-user/happinessql/ # 프로젝트 이름
overwrite: yes

permissions:
- object: /
pattern: "**"
owner: ec2-user
group: ec2-user

0 comments on commit 677bc4e

Please sign in to comment.