Skip to content

Commit

Permalink
Merge pull request #21 from Tune-Fun/configuration/workflow/code_deploy
Browse files Browse the repository at this point in the history
config(workflow): cd
  • Loading branch information
habinkim authored Mar 7, 2024
2 parents 5a1a502 + 4146462 commit ed38cdd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,15 @@ jobs:

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

# Deploy
- name: Deploy
run: |
aws deploy create-deployment \
--application-name tuenfun-dev \
--deployment-config-name CodeDeployDefault.AllAtOnce \
--deployment-group-name tuenfun-dev-deploy \
--file-exists-behavior OVERWRITE \
--s3-location bucket=$S3_BUCKET_NAME,bundleType=zip,key=$GITHUB_SHA.zip \
--region ap-northeast-2 \
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# workflow의 이름
name: cicd
name: CI

# 해당 workflow가 언제 실행될 것인지에 대한 트리거를 지정
on:
Expand Down

0 comments on commit ed38cdd

Please sign in to comment.