Skip to content

Commit

Permalink
setting: code deploy 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
D0ri123 committed Sep 17, 2023
1 parent 0c557de commit b9d5bc6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,6 @@ jobs:

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

- name: Code Deploy
run: aws deploy create-deployment --application-name bbok-deploy --deployment-config-name CodeDeployDefault.AllAtOnce --deployment-group-name bbok-code-deploy bucket=$S3_BUCKET_NAME,bundleType=zip,key=/$GITHUB_SHA.zip
14 changes: 9 additions & 5 deletions appspec.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#code deploy가 참조하는 배포 설명서 - appspec.yml

version: 0.0
os: linux
files:
- source: /
destination: /home/ubuntu/backend-server
destination: /home /ec2-user/bbok-deploy/ # 배포 파일이 저장되는 경로
overwrite: yes
hooks:
ApplicationStart:
- location: ./scripts/application-start.sh
timeout: 900

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

0 comments on commit b9d5bc6

Please sign in to comment.