diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 71d0c40..25586a3 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -16,7 +16,7 @@ env: jobs: build: runs-on: ubuntu-latest # 3. 실행 환경 지정 - # if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'develop' + if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'develop' # 4. 실행 스텝 지정 steps: @@ -63,4 +63,4 @@ jobs: run: aws s3 cp --region ap-northeast-2 ./$GITHUB_SHA.zip s3://$S3_BUCKET_NAME/$PROJECT_NAME/$GITHUB_SHA.zip - name: Code Deploy - run: aws deploy create-deployment --application-name happinessql-deploy --deployment-config-name CodeDeployDefault.AllAtOnce --deployment-group-name develop --s3-location bucket=$S3_BUCKET_NAME,bundleType=zip,key=$PROJECT_NAME/$GITHUB_SHA.zip \ No newline at end of file + run: aws deploy create-deployment --application-name happinessql-deploy --deployment-config-name CodeDeployDefault.AllAtOnce --deployment-group-name develop --s3-location bucket=$S3_BUCKET_NAME,bundleType=zip,key=$PROJECT_NAME/$GITHUB_SHA.zip