diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f94030d6..3d015041 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -123,7 +123,7 @@ jobs: cd deploy && zip -r deploy.zip . working-directory: LearnsMate - - name: Beanstalk Deploy + - name: Beanstalk1 Deploy uses: einaregilsson/beanstalk-deploy@v22 with: aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }} @@ -135,4 +135,18 @@ jobs: deployment_package: LearnsMate/deploy/deploy.zip use_existing_version_if_available: false wait_for_deployment: true + wait_for_environment_recovery: 300 + + - name: Beanstalk2 Deploy + uses: einaregilsson/beanstalk-deploy@v22 + with: + aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + application_name: intbyte-env2 + environment_name: Intbyte-env2 + version_label: github-action-${{steps.current-time.outputs.formattedTime}} + region: ap-northeast-2 + deployment_package: LearnsMate/deploy/deploy.zip + use_existing_version_if_available: false + wait_for_deployment: true wait_for_environment_recovery: 300 \ No newline at end of file