Merge pull request #89 from svc-design/codex/add-deployment-variables-to-yaml-files
Add workflow_dispatch inputs and PR triggers to IAC pipelines
This commit is contained in:
commit
02c30229ca
@ -6,7 +6,28 @@ on:
|
||||
- 'iac_modules/pulumi/**'
|
||||
- 'config/alicloud/**'
|
||||
- '.github/workflows/iac-pipeline-alicloud-landingzone-baseline.yaml'
|
||||
pull_request:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
deploy_action:
|
||||
description: "Deployment action to execute"
|
||||
type: choice
|
||||
options:
|
||||
- init
|
||||
- magrate
|
||||
- upgrade
|
||||
- backup
|
||||
- restore
|
||||
- destroy
|
||||
default: upgrade
|
||||
deploy_dry_run:
|
||||
description: "Run deployment steps in dry-run mode"
|
||||
type: choice
|
||||
options:
|
||||
- 'true'
|
||||
- 'false'
|
||||
default: 'true'
|
||||
|
||||
env:
|
||||
PULUMI_CI: 'true'
|
||||
|
||||
@ -1,17 +1,27 @@
|
||||
name: Deploy Infrastructure Monitor Exporters
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
branches:
|
||||
- main
|
||||
inputs:
|
||||
deploy_action:
|
||||
description: 'Deployment action to perform'
|
||||
required: false
|
||||
description: "Deployment action to execute"
|
||||
type: choice
|
||||
options:
|
||||
- init
|
||||
- magrate
|
||||
- upgrade
|
||||
- backup
|
||||
- restore
|
||||
- destroy
|
||||
default: upgrade
|
||||
deploy_dry_run:
|
||||
description: 'Whether to perform a dry-run'
|
||||
required: false
|
||||
description: "Run deployment steps in dry-run mode"
|
||||
type: choice
|
||||
options:
|
||||
- 'true'
|
||||
- 'false'
|
||||
default: 'true'
|
||||
|
||||
jobs:
|
||||
|
||||
@ -4,13 +4,25 @@ on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
deploy_action:
|
||||
description: "Action to perform (upgrade, destroy, etc.)"
|
||||
required: false
|
||||
description: "Deployment action to execute"
|
||||
type: choice
|
||||
options:
|
||||
- init
|
||||
- magrate
|
||||
- upgrade
|
||||
- backup
|
||||
- restore
|
||||
- destroy
|
||||
default: upgrade
|
||||
deploy_dry_run:
|
||||
description: "Run Ansible in check mode"
|
||||
required: false
|
||||
description: "Run deployment steps in dry-run mode"
|
||||
type: choice
|
||||
options:
|
||||
- 'true'
|
||||
- 'false'
|
||||
default: 'true'
|
||||
pull_request:
|
||||
branches: [main]
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
Loading…
Reference in New Issue
Block a user