Skip to content

Commit

Permalink
fix: env 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
yujamint committed Jun 1, 2024
1 parent 321653d commit b07ca80
Showing 1 changed file with 4 additions and 9 deletions.
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

0 comments on commit b07ca80

Please sign in to comment.