隔离部署前端构建进程
This commit is contained in:
parent
7f1570401d
commit
9e89fe3bf2
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user