mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
Add Ubuntu2204 ImageType (#5476)
* Add Ubuntu2204 ImageType * Update json path
This commit is contained in:
committed by
GitHub
parent
f1b7652904
commit
a27099b057
@@ -6,6 +6,7 @@ enum ImageType {
|
||||
Windows2022 = 2
|
||||
Ubuntu1804 = 3
|
||||
Ubuntu2004 = 4
|
||||
Ubuntu2204 = 5
|
||||
}
|
||||
|
||||
Function Get-PackerTemplatePath {
|
||||
@@ -32,6 +33,9 @@ Function Get-PackerTemplatePath {
|
||||
([ImageType]::Ubuntu2004) {
|
||||
$relativeTemplatePath = Join-Path "linux" "ubuntu2004.json"
|
||||
}
|
||||
([ImageType]::Ubuntu2204) {
|
||||
$relativeTemplatePath = Join-Path "linux" "ubuntu2204.json"
|
||||
}
|
||||
default { throw "Unknown type of image" }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user