隔离部署前端构建进程

This commit is contained in:
chenxi 2026-09-26 03:36:42 +08:00
parent 7f1570401d
commit 9e89fe3bf2

View File

@ -326,7 +326,11 @@ try {
# deploy-auth.ps1 is dot-sourced and can clear the automatic script path
# variable on PowerShell Core. Restore it before invoking the build helper.
$PSScriptRoot = $scriptRoot
& (Join-Path $scriptRoot 'build-frontend.ps1')
$pwshPath = (Get-Process -Id $PID).Path
if ([string]::IsNullOrWhiteSpace($pwshPath)) {
throw '无法定位当前 PowerShell 可执行文件。'
}
& $pwshPath -NoProfile -File (Join-Path $scriptRoot 'build-frontend.ps1')
docker buildx inspect $BuilderName 2>$null | Out-Null
if ($LASTEXITCODE -ne 0) {