diff --git a/spacemk/templates/base.tf.jinja b/spacemk/templates/base.tf.jinja index d9ee476..377902f 100644 --- a/spacemk/templates/base.tf.jinja +++ b/spacemk/templates/base.tf.jinja @@ -97,6 +97,7 @@ resource "spacelift_stack" "{{ stack._relationships.space._migration_id }}_{{ st {% if stack.terraform.workflow_tool == "CUSTOM" %} {{ argument("runner_image ", extra_vars.custom_terraform_runner_image ~ ":" ~ stack.terraform.version, required=True) }} {% endif %} + {% if stack.vcs.provider == "github_custom" and generation.github.custom_app %} github_enterprise { {{ argument("namespace", stack.vcs.namespace) }} @@ -259,6 +260,7 @@ resource "spacelift_module" "{{ module._relationships.space._migration_id }}_{{ {{ argument("space_id", "spacelift_space." ~ module._relationships.space._migration_id ~ ".id", serialize=False) }} {{ argument("terraform_provider", module.terraform_provider) }} {% block module_arguments_extra scoped %}{% endblock %} + {% if module.vcs.provider == "github_custom" and generation_config.github.custom_app %} github_enterprise { {{ argument("namespace", module.vcs.namespace) }}