Skip to content

Commit 66860ca

Browse files
gfraiteurclaude
andcommitted
DockerBuild: add verbose output for env variables passed to container
Print sorted list of environment variable names (without values) when creating env.g.json in both New-EnvJson and New-ClaudeEnvJson functions. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 68da021 commit 66860ca

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/PostSharp.Engineering.BuildTools/Resources/DockerBuild.ps1

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,10 @@ function New-EnvJson
203203
}
204204

205205
$envVariables | ConvertTo-Json -Depth 10 | Set-Content -Path $jsonPath -Encoding UTF8
206-
Write-Host "Created secrets file: $jsonPath" -ForegroundColor Cyan
207206

207+
# Print sorted list of environment variables being passed
208+
$sortedKeys = $envVariables.Keys | Sort-Object
209+
Write-Host "Environment variables: $($sortedKeys -join ', ')" -ForegroundColor Gray
208210

209211
return $jsonPath
210212
}
@@ -334,7 +336,10 @@ function New-ClaudeEnvJson
334336
}
335337

336338
$claudeEnv | ConvertTo-Json -Depth 10 | Set-Content -Path $jsonPath -Encoding UTF8
337-
Write-Host "Created Claude secrets file: $jsonPath" -ForegroundColor Cyan
339+
340+
# Print sorted list of environment variables being passed
341+
$sortedKeys = $claudeEnv.Keys | Sort-Object
342+
Write-Host "Environment variables: $($sortedKeys -join ', ')" -ForegroundColor Gray
338343

339344
return $jsonPath
340345
}

0 commit comments

Comments
 (0)