Skip to content

Commit

Permalink
Add ubuntu 24.04 to custom image scripts generator (#9868)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailkoliada committed May 16, 2024
1 parent 5ecfd27 commit 4abf97a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion helpers/GenerateResourcesAndImage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ enum ImageType {
Windows2022 = 2
Ubuntu2004 = 3
Ubuntu2204 = 4
UbuntuMinimal = 5
Ubuntu2404 = 5
UbuntuMinimal = 6
}

Function Get-PackerTemplatePath {
Expand All @@ -30,6 +31,9 @@ Function Get-PackerTemplatePath {
([ImageType]::Ubuntu2204) {
$relativeTemplatePath = Join-Path (Join-Path "ubuntu" "templates") "ubuntu-22.04.pkr.hcl"
}
([ImageType]::Ubuntu2404) {
$relativeTemplatePath = Join-Path (Join-Path "ubuntu" "templates") "ubuntu-24.04.pkr.hcl"
}
([ImageType]::UbuntuMinimal) {
$relativeTemplatePath = Join-Path (Join-Path "ubuntu" "templates") "ubuntu-minimal.pkr.hcl"
}
Expand Down

0 comments on commit 4abf97a

Please sign in to comment.