Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
narinn-star committed Jul 9, 2023
1 parent 2dc1d41 commit 489895c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:

# 빌드 결과물을 S3 버킷에 업로드
- name: Upload to S3
run: aws s3 cp --region ap-northeast-2 ./$GITHUB_SHA.zip s3://$S3_BUCKET_NAME/fe/$GITHUB_SHA.zip
run: aws s3 cp --region ap-northeast-2 ./build/$GITHUB_SHA.zip s3://$S3_BUCKET_NAME/fe/$GITHUB_SHA.zip

# S3 버킷에 있는 파일을 대상으로 CodeDeploy 실행
- name: Deploy to AWS EC2 from S3
Expand All @@ -59,4 +59,4 @@ jobs:
--application-name ${{ env.CODE_DEPLOY_APPLICATION_NAME }} \
--deployment-config-name CodeDeployDefault.AllAtOnce \
--deployment-group-name ${{ env.CODE_DEPLOY_DEPLOYMENT_GROUP_NAME }} \
--s3-location bucket=$S3_BUCKET_NAME,key=fe/$GITHUB_SHA.zip,bundleType=zip
--s3-location bucket=${{env.S3_BUCKET_NAME}},fe,key=${{ env.GITHUB_SHA }}.zip,bundleType=zip

0 comments on commit 489895c

Please sign in to comment.