feat: expose workspace build ID to terraform-plugin-coder (#13680)

This commit is contained in:
Marcin Tojek
2024-06-27 10:07:30 +02:00
committed by GitHub
parent 30c4b4db5c
commit c4f1676055
6 changed files with 155 additions and 136 deletions
+1
View File
@@ -210,6 +210,7 @@ func provisionEnv(
"CODER_WORKSPACE_TEMPLATE_ID="+metadata.GetTemplateId(),
"CODER_WORKSPACE_TEMPLATE_NAME="+metadata.GetTemplateName(),
"CODER_WORKSPACE_TEMPLATE_VERSION="+metadata.GetTemplateVersion(),
"CODER_WORKSPACE_BUILD_ID="+metadata.GetWorkspaceBuildId(),
)
for key, value := range provisionersdk.AgentScriptEnv() {
env = append(env, key+"="+value)