Skip to content

Commit

Permalink
chore: AWS 설정에 맞게 cd 변수 수정
Browse files Browse the repository at this point in the history
- 도쿄 -> 서울로 수정
- 버킷 이름, deploy-group, code-deploy 명 수정
  • Loading branch information
wonu606 committed Feb 20, 2024
1 parent 359d053 commit 0cab9de
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/develop-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
workflow_dispatch:

env:
BUCKET_NAME: team09-cicd-bucket
BUCKET_NAME: studay-cicd-bucket
PROJECT_NAME: studay
DEPLOYMENT_GROUP_NAME: studay_cicd
CODE_DEPLOY_APP_NAME: studay_cicd
DEPLOYMENT_GROUP_NAME: delpoy-group
CODE_DEPLOY_APP_NAME: studay-codedeploy
jobs:
# 작업의 이름
build_and_test:
Expand Down Expand Up @@ -68,14 +68,14 @@ jobs:
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_PRIVATE_ACCESS_KEY }}
aws-region: ap-northeast-1
aws-region: ap-northeast-2

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

- name: Code Deploy To EC2 instance
run: aws deploy create-deployment
--application-name $CODE_DEPLOY_APP_NAME
--deployment-config-name CodeDeployDefault.AllAtOnce
--deployment-group-name $DEPLOYMENT_GROUP_NAME
--s3-location bucket=$BUCKET_NAME,bundleType=zip,key=$PROJECT_NAME/$GITHUB_SHA.zip
--s3-location bucket=$BUCKET_NAME,bundleType=zip,key=$PROJECT_NAME/$GITHUB_SHA.zip

0 comments on commit 0cab9de

Please sign in to comment.