File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 required : true
1919 type : boolean
2020 deploy :
21- description : ' Deploy to Staging / Prod'
21+ description : ' Deploy to K8S'
22+ default : ' Skip'
23+ required : true
24+ type : choice
25+ options :
26+ - None
27+ - Staging Only
28+ - Staging + Prod
29+ deployProd :
30+ description : ' Deploy to Prod'
2231 default : false
2332 required : true
2433 type : boolean
@@ -417,7 +426,7 @@ jobs:
417426 # -----------------------------------------------------------------
418427 staging :
419428 name : Deploy to Staging
420- if : ${{ !failure() && !cancelled() && github.event.inputs.deploy == 'true' }}
429+ if : ${{ !failure() && !cancelled() && ( github.event.inputs.deploy == 'Staging Only' || github.event.inputs.deploy == 'Staging + Prod') }}
421430 needs : [prepare, release]
422431 runs-on : ubuntu-latest
423432 environment :
@@ -442,7 +451,7 @@ jobs:
442451 # -----------------------------------------------------------------
443452 prod :
444453 name : Deploy to Production
445- if : ${{ !failure() && !cancelled() && github.event.inputs.deploy == 'true ' }}
454+ if : ${{ !failure() && !cancelled() && github.event.inputs.deploy == 'Staging + Prod ' }}
446455 needs : [staging]
447456 runs-on : ubuntu-latest
448457 environment :
You can’t perform that action at this time.
0 commit comments