Skip to content

Commit faca687

Browse files
authored
ci: Update build.yml workflow
1 parent 81a5673 commit faca687

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,16 @@ on:
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:

0 commit comments

Comments
 (0)