fix:修正本地构建工作流参数传递
This commit is contained in:
@@ -107,11 +107,14 @@ jobs:
|
|||||||
Set-StrictMode -Version Latest
|
Set-StrictMode -Version Latest
|
||||||
|
|
||||||
Set-Location $env:SMARTFLOW_WORKTREE
|
Set-Location $env:SMARTFLOW_WORKTREE
|
||||||
$packArgs = @("-AppTag", $env:APP_TAG, "-PlanFile", "deploy\release-plan.env")
|
$packArgs = @{
|
||||||
if ($env:INPUT_INCLUDE_INFRA -eq "true") {
|
AppTag = $env:APP_TAG
|
||||||
$packArgs += "-IncludeInfra"
|
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
|
- name: Stage release directory
|
||||||
shell: powershell
|
shell: powershell
|
||||||
|
|||||||
Reference in New Issue
Block a user