diff --git a/.github/workflows/aws-ec2-dev.yml b/.github/workflows/aws-ec2-dev.yml index 15d23ce..e23a821 100644 --- a/.github/workflows/aws-ec2-dev.yml +++ b/.github/workflows/aws-ec2-dev.yml @@ -11,7 +11,7 @@ permissions: env: AWS_REGION: ap-northeast-2 - AWS_S3_BUCKET: app-release-files + AWS_S3_BUCKET: todaypopup-cicd/dev AWS_CODE_DEPLOY_APPLICATION: todaypopup-dev-cicd AWS_CODE_DEPLOY_GROUP: todaypopup-dev-cicd-group @@ -52,7 +52,7 @@ jobs: aws-secret-access-key: ${{ secrets.CICD_SECRET_KEY }} - name: S3에 업로드 - run: aws deploy push --application-name ${{ env.AWS_CODE_DEPLOY_APPLICATION }} --ignore-hidden-files --s3-location s3://$AWS_S3_BUCKET/todaypopup-dev-cicd/$GITHUB_SHA.zip --source . + run: aws deploy push --application-name ${{ env.AWS_CODE_DEPLOY_APPLICATION }} --ignore-hidden-files --s3-location s3://$AWS_S3_BUCKET/$GITHUB_SHA.zip --source . - name: EC2에 배포 run: aws deploy create-deployment --application-name ${{ env.AWS_CODE_DEPLOY_APPLICATION }} --deployment-config-name CodeDeployDefault.AllAtOnce --deployment-group-name ${{ env.AWS_CODE_DEPLOY_GROUP }} --s3-location bucket=$AWS_S3_BUCKET,key=todaypopup-dev-cicd/$GITHUB_SHA.zip,bundleType=zip