Skip to content

Commit

Permalink
FWB gha update
Browse files Browse the repository at this point in the history
  • Loading branch information
jvhoof committed Jun 19, 2024
1 parent 12ba936 commit 3753853
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/fwb-azure-marketplace-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ jobs:
[void](New-Item -Path "${dest}" -Type Directory)
$content = Get-Content -Raw -Path "./${env:PRODUCT}/${buildingBlock}/mainTemplate.json" | ConvertFrom-Json
$content.parameters.FortiWebImageVersion.allowedValues = $marketplaceVersions
$content.parameters.imageVersion.allowedValues = $marketplaceVersions
$content.resources.Where({$_.type -eq 'Microsoft.Resources/deployments'})[0].name = "pid-776b2227-2743-485a-b385-e9dfd42bfe75-partnercenter"
$content | ConvertTo-Json -depth 100 | Out-File "${dest}/mainTemplate.json"
"" | Out-File -Append "${dest}/mainTemplate.json"
$content = Get-Content -Raw -Path "./${env:PRODUCT}/${buildingBlock}/createUiDefinition.json" | ConvertFrom-Json
$content.parameters.basics.Where({$_.Name.equals("FortiWebImageVersion")}).constraints.allowedValues = $marketplaceVersionsUI
$content.parameters.basics.Where({$_.Name.equals("imageVersion")}).constraints.allowedValues = $marketplaceVersionsUI
$content | ConvertTo-Json -depth 100 | Out-File "${dest}/createUiDefinition.json"
"" | Out-File -Append "${dest}/createUiDefinition.json"
}
Expand Down

0 comments on commit 3753853

Please sign in to comment.