ci: Update build.yml workflow
This commit is contained in:
parent
81a56730f6
commit
faca687016
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
|
@ -18,7 +18,16 @@ on:
|
||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
deploy:
|
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
|
default: false
|
||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
|
@ -417,7 +426,7 @@ jobs:
|
||||||
# -----------------------------------------------------------------
|
# -----------------------------------------------------------------
|
||||||
staging:
|
staging:
|
||||||
name: Deploy to 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]
|
needs: [prepare, release]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment:
|
environment:
|
||||||
|
@ -442,7 +451,7 @@ jobs:
|
||||||
# -----------------------------------------------------------------
|
# -----------------------------------------------------------------
|
||||||
prod:
|
prod:
|
||||||
name: Deploy to Production
|
name: Deploy to Production
|
||||||
if: ${{ !failure() && !cancelled() && github.event.inputs.deploy == 'true' }}
|
if: ${{ !failure() && !cancelled() && github.event.inputs.deploy == 'Staging + Prod' }}
|
||||||
needs: [staging]
|
needs: [staging]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in a new issue