Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

배포 테스트 #54

Merged
merged 1 commit into from
Jun 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ on:
branches: [dev, test/cd]
types: [closed]

env:
AWS_ACCESS_KEY: ${{ secrets.STG_AWS_ACCESS_KEY }}
AWS_SECRET_KEY: ${{ secrets.STG_AWS_SECRET_KEY }}
AWS_S3_BUCKET_NAME: ${{ secrets.STG_AWS_S3_BUCKET_NAME }}

jobs:
deploy:

Expand Down Expand Up @@ -40,22 +35,22 @@ jobs:
- name: AWS credentials 설정
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: $AWS_ACCESS_KEY
aws-secret-access-key: $AWS_SECRET_KEY
aws-access-key-id: ${{ secrets.STG_AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.STG_AWS_SECRET_KEY }}
aws-region: ap-northeast-2

- name: S3에 zip 파일 업로드
run: aws s3 cp \
--region ap-northeast-2 \
./qtudy.zip s3://$AWS_S3_BUCKET_NAME/qtudy.zip
./qtudy.zip s3://${{ secrets.STG_AWS_S3_BUCKET_NAME }}/qtudy.zip

- name: Code Deploy 통해 배포
run: aws deploy create-deployment \
--application-name $AWS_CODE_DEPLOY_APPLICATION_NAME \
--file-exists-behavior OVERWRITE \
--deployment-config-name QtudyStageCodeDeploy \
--deployment-group-name QtudyStageCodeDeploy-DepGrp \
--s3-location bucket=$AWS_S3_BUCKET_NAME, bundleType=zip, key=qtudy.zip \
--s3-location bucket=${{ secrets.STG_AWS_S3_BUCKET_NAME }}, bundleType=zip, key=qtudy.zip \
--region ap-northeast-2


Expand Down
Loading