mirror of
https://github.com/actions/runner-images.git
synced 2025-12-29 13:17:53 +08:00
* [ubuntu] Refactor image properties mapping to use source_image_marketplace_sku * Refactor Ubuntu and Windows image properties to simplify disk size handling and update marketplace SKU mappings * Refactor disk size handling to use coalesce for improved flexibility
20 lines
732 B
HCL
20 lines
732 B
HCL
locals {
|
|
image_properties_map = {
|
|
"win19" = {
|
|
source_image_marketplace_sku = "MicrosoftWindowsServer:WindowsServer:2019-Datacenter"
|
|
os_disk_size_gb = 256
|
|
},
|
|
"win22" = {
|
|
source_image_marketplace_sku = "MicrosoftWindowsServer:WindowsServer:2022-Datacenter"
|
|
os_disk_size_gb = 256
|
|
},
|
|
"win25" = {
|
|
source_image_marketplace_sku = "MicrosoftWindowsServer:WindowsServer:2025-Datacenter"
|
|
os_disk_size_gb = 150
|
|
}
|
|
}
|
|
|
|
source_image_marketplace_sku = local.image_properties_map[var.image_os].source_image_marketplace_sku
|
|
os_disk_size_gb = coalesce(var.os_disk_size_gb, local.image_properties_map[var.image_os].os_disk_size_gb)
|
|
}
|