diff --git a/images.CI/macos/anka/Anka.Helpers.psm1 b/images.CI/macos/anka/Anka.Helpers.psm1 index 7e57f36bd..fff0c7045 100644 --- a/images.CI/macos/anka/Anka.Helpers.psm1 +++ b/images.CI/macos/anka/Anka.Helpers.psm1 @@ -16,7 +16,7 @@ function Push-AnkaTemplateToRegistry { # if registry uuid doesn't match than delete an image in registry $images = anka --machine-readable registry --registry-path $RegistryUrl list | ConvertFrom-Json | ForEach-Object body $images | Where-Object name -eq $TemplateName | ForEach-Object { - $id = $_.id + $id = $_.uuid Show-StringWithFormat "Deleting '$TemplateName[$id]' VM and '$TagName' tag" $uri = '{0}/registry/vm?id={1}' -f $RegistryUrl, $id Invoke-WebRequest -Uri $uri -Method Delete | Out-Null diff --git a/images/macos/templates/macOS-12.anka.pkr.hcl b/images/macos/templates/macOS-12.anka.pkr.hcl index fa2fb2878..b92bd0642 100644 --- a/images/macos/templates/macOS-12.anka.pkr.hcl +++ b/images/macos/templates/macOS-12.anka.pkr.hcl @@ -1,3 +1,12 @@ +packer { + required_plugins { + veertu-anka = { + version = "= v3.1.0" + source = "github.com/veertuinc/veertu-anka" + } + } +} + variable "source_vm_name" { type = string }