mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 04:37:09 +00:00
Add ubuntu 24.04 to custom image scripts generator (#9868)
This commit is contained in:
@@ -5,7 +5,8 @@ enum ImageType {
|
|||||||
Windows2022 = 2
|
Windows2022 = 2
|
||||||
Ubuntu2004 = 3
|
Ubuntu2004 = 3
|
||||||
Ubuntu2204 = 4
|
Ubuntu2204 = 4
|
||||||
UbuntuMinimal = 5
|
Ubuntu2404 = 5
|
||||||
|
UbuntuMinimal = 6
|
||||||
}
|
}
|
||||||
|
|
||||||
Function Get-PackerTemplatePath {
|
Function Get-PackerTemplatePath {
|
||||||
@@ -30,6 +31,9 @@ Function Get-PackerTemplatePath {
|
|||||||
([ImageType]::Ubuntu2204) {
|
([ImageType]::Ubuntu2204) {
|
||||||
$relativeTemplatePath = Join-Path (Join-Path "ubuntu" "templates") "ubuntu-22.04.pkr.hcl"
|
$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) {
|
([ImageType]::UbuntuMinimal) {
|
||||||
$relativeTemplatePath = Join-Path (Join-Path "ubuntu" "templates") "ubuntu-minimal.pkr.hcl"
|
$relativeTemplatePath = Join-Path (Join-Path "ubuntu" "templates") "ubuntu-minimal.pkr.hcl"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user