fix:修正本地构建工作流参数传递

This commit is contained in:
LoveLosita
2026-05-09 19:16:04 +08:00
parent 689ce60ab4
commit e79cfcc4b6

View File

@@ -107,11 +107,14 @@ jobs:
Set-StrictMode -Version Latest
Set-Location $env:SMARTFLOW_WORKTREE
$packArgs = @("-AppTag", $env:APP_TAG, "-PlanFile", "deploy\release-plan.env")
if ($env:INPUT_INCLUDE_INFRA -eq "true") {
$packArgs += "-IncludeInfra"
$packArgs = @{
AppTag = $env:APP_TAG
PlanFile = "deploy\release-plan.env"
}
.\deploy\docker-pack.ps1 @packArgs
if ($env:INPUT_INCLUDE_INFRA -eq "true") {
$packArgs["IncludeInfra"] = $true
}
& .\deploy\docker-pack.ps1 @packArgs
- name: Stage release directory
shell: powershell