mirror of
https://github.com/actions/runner-images.git
synced 2026-01-06 10:09:20 +08:00
add boolean to control when to run anka push during clean generation (#8305)
This commit is contained in:
@@ -19,6 +19,7 @@ param(
|
|||||||
[string] $TemplateName,
|
[string] $TemplateName,
|
||||||
|
|
||||||
[bool] $DownloadLatestVersion = $true,
|
[bool] $DownloadLatestVersion = $true,
|
||||||
|
[bool] $PushToRegistry = $true,
|
||||||
[bool] $BetaSearch = $false,
|
[bool] $BetaSearch = $false,
|
||||||
[bool] $InstallSoftwareUpdate = $true,
|
[bool] $InstallSoftwareUpdate = $true,
|
||||||
[bool] $EnableAutoLogon = $true,
|
[bool] $EnableAutoLogon = $true,
|
||||||
@@ -204,6 +205,8 @@ Set-AnkaVMVideoController -VMName $TemplateName -ShortMacOSVersion $ShortMacOSVe
|
|||||||
Write-Host "`t[*] Setting screen resolution to $DisplayResolution for $TemplateName"
|
Write-Host "`t[*] Setting screen resolution to $DisplayResolution for $TemplateName"
|
||||||
Set-AnkaVMDisplayResolution -VMName $TemplateName -DisplayResolution $DisplayResolution
|
Set-AnkaVMDisplayResolution -VMName $TemplateName -DisplayResolution $DisplayResolution
|
||||||
|
|
||||||
# Push a VM template (and tag) to the Cloud
|
if ($PushToRegistry) {
|
||||||
Write-Host "`t[*] Pushing '$TemplateName' image with '$TagName' tag to the '$RegistryUrl' registry..."
|
# Push a VM template (and tag) to the Cloud
|
||||||
Push-AnkaTemplateToRegistry -RegistryUrl $registryUrl -TagName $TagName -TemplateName $TemplateName
|
Write-Host "`t[*] Pushing '$TemplateName' image with '$TagName' tag to the '$RegistryUrl' registry..."
|
||||||
|
Push-AnkaTemplateToRegistry -RegistryUrl $registryUrl -TagName $TagName -TemplateName $TemplateName
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user