mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 11:37:00 +00:00
Cleanup ubuntu1804 image references (#7388)
This commit is contained in:
committed by
GitHub
parent
425daf97b4
commit
e72606ffb6
@@ -3,9 +3,8 @@ $ErrorActionPreference = 'Stop'
|
||||
enum ImageType {
|
||||
Windows2019 = 1
|
||||
Windows2022 = 2
|
||||
Ubuntu1804 = 3
|
||||
Ubuntu2004 = 4
|
||||
Ubuntu2204 = 5
|
||||
Ubuntu2004 = 3
|
||||
Ubuntu2204 = 4
|
||||
}
|
||||
|
||||
Function Get-PackerTemplatePath {
|
||||
@@ -23,9 +22,6 @@ Function Get-PackerTemplatePath {
|
||||
([ImageType]::Windows2022) {
|
||||
$relativeTemplatePath = Join-Path "win" "windows2022.json"
|
||||
}
|
||||
([ImageType]::Ubuntu1804) {
|
||||
$relativeTemplatePath = Join-Path "linux" "ubuntu1804.json"
|
||||
}
|
||||
([ImageType]::Ubuntu2004) {
|
||||
$relativeTemplatePath = Join-Path "linux" "ubuntu2004.json"
|
||||
}
|
||||
@@ -67,7 +63,7 @@ Function GenerateResourcesAndImage {
|
||||
.PARAMETER ImageGenerationRepositoryRoot
|
||||
The root path of the image generation repository source.
|
||||
.PARAMETER ImageType
|
||||
The type of the image being generated. Valid options are: {"Windows2019", "Windows2022", "Ubuntu1804", "Ubuntu2004", "Ubuntu2204"}.
|
||||
The type of the image being generated. Valid options are: {"Windows2019", "Windows2022", "Ubuntu2004", "Ubuntu2204"}.
|
||||
.PARAMETER AzureLocation
|
||||
The location of the resources being created in Azure. For example "East US".
|
||||
.PARAMETER Force
|
||||
@@ -87,7 +83,7 @@ Function GenerateResourcesAndImage {
|
||||
.PARAMETER OnError
|
||||
Specify how packer handles an error during image creation.
|
||||
.EXAMPLE
|
||||
GenerateResourcesAndImage -SubscriptionId {YourSubscriptionId} -ResourceGroupName "shsamytest1" -ImageGenerationRepositoryRoot "C:\runner-images" -ImageType Ubuntu1804 -AzureLocation "East US"
|
||||
GenerateResourcesAndImage -SubscriptionId {YourSubscriptionId} -ResourceGroupName "shsamytest1" -ImageGenerationRepositoryRoot "C:\runner-images" -ImageType Ubuntu2004 -AzureLocation "East US"
|
||||
#>
|
||||
param (
|
||||
[Parameter(Mandatory = $True)]
|
||||
|
||||
Reference in New Issue
Block a user