Use BOOTSTRAP_CONFIG_PATH only for bootstrap config

This commit is contained in:
cloudneutral 2025-12-24 15:32:04 +08:00
parent ffb3a6d962
commit bf265a49c1
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
)
}