Skip to content

Manual Deploy

Manual Deploy #22

name: Manual Deploy
on:
workflow_dispatch:
inputs:
environment:
description: Environment
type: choice
options:
- dev
- staging
- prod
deploy-ingestion:
description: Deploy Ingestion
default: false
type: boolean
deploy-rail-pm:
description: Deploy Rail Performance Manager
default: false
type: boolean
deploy-tableau-publisher:
description: Deploy Tableau Publisher (only run on Prod)
default: false
type: boolean
jobs:
deploy:
concurrency:
group: github.event.inputs.environment
uses: ./.github/workflows/deploy-base.yaml
with:
# pass the inputs from the workflow dispatch through to the deploy base. the booleans are
# converted to strings, so flip them back using fromJson function
environment: ${{ github.event.inputs.environment }}
deploy-ingestion: ${{ fromJson(github.event.inputs.deploy-ingestion) }}
deploy-rail-pm: ${{ fromJson(github.event.inputs.deploy-rail-pm) }}
deploy-tableau-publisher: ${{ fromJson(github.event.inputs.deploy-tableau-publisher) }}
secrets: inherit