From faca687016abef19b8cc375c439f4b699494084b Mon Sep 17 00:00:00 2001 From: Nicolas Giard Date: Tue, 25 Jun 2024 05:04:58 -0400 Subject: [PATCH] ci: Update build.yml workflow --- .github/workflows/build.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9c788cd03..96ea3ec09 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,16 @@ on: required: true type: boolean deploy: - description: 'Deploy to Staging / Prod' + description: 'Deploy to K8S' + default: 'Skip' + required: true + type: choice + options: + - None + - Staging Only + - Staging + Prod + deployProd: + description: 'Deploy to Prod' default: false required: true type: boolean @@ -417,7 +426,7 @@ jobs: # ----------------------------------------------------------------- staging: name: Deploy to Staging - if: ${{ !failure() && !cancelled() && github.event.inputs.deploy == 'true' }} + if: ${{ !failure() && !cancelled() && (github.event.inputs.deploy == 'Staging Only' || github.event.inputs.deploy == 'Staging + Prod') }} needs: [prepare, release] runs-on: ubuntu-latest environment: @@ -442,7 +451,7 @@ jobs: # ----------------------------------------------------------------- prod: name: Deploy to Production - if: ${{ !failure() && !cancelled() && github.event.inputs.deploy == 'true' }} + if: ${{ !failure() && !cancelled() && github.event.inputs.deploy == 'Staging + Prod' }} needs: [staging] runs-on: ubuntu-latest environment: