Merge pull request #207 from cloud-neutral-workshop/codex/fix-invalid-function-argument-in-terragrunt.hcl

Use BOOTSTRAP_CONFIG_PATH for bootstrap configuration inputs
This commit is contained in:
cloudneutral 2025-12-24 15:32:20 +08:00 committed by GitHub
commit 51acf876b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 6 deletions

View File

@ -35,6 +35,7 @@ env:
TG_VERSION: 0.67.14
GITOPS_REPO_ROOT: gitops
GITOPS_BOOTSTRAP_CONFIG: ${{ github.event.inputs.gitops_bootstrap_config || 'config/xzerolab/sit/aws-cloud/account/bootstrap.yaml' }}
BOOTSTRAP_CONFIG_PATH: ${{ format('{0}/{1}/{2}', github.workspace, env.GITOPS_REPO_ROOT, env.GITOPS_BOOTSTRAP_CONFIG) }}
jobs:
bootstrap:

View File

@ -12,7 +12,7 @@ terraform {
inputs = {
bootstrap_config_path = coalesce(
get_env("TF_CONFIG", null),
get_env("BOOTSTRAP_CONFIG_PATH", "")
trimspace(get_env("BOOTSTRAP_CONFIG_PATH", "")),
null
)
}

View File

@ -12,7 +12,7 @@ terraform {
inputs = {
bootstrap_config_path = coalesce(
get_env("TF_CONFIG", null),
get_env("BOOTSTRAP_CONFIG_PATH", "")
trimspace(get_env("BOOTSTRAP_CONFIG_PATH", "")),
null
)
}

View File

@ -8,7 +8,7 @@ terraform {
inputs = {
bootstrap_config_path = coalesce(
get_env("TF_CONFIG", null),
get_env("BOOTSTRAP_CONFIG_PATH", "")
trimspace(get_env("BOOTSTRAP_CONFIG_PATH", "")),
null
)
}