mirror of
https://github.com/actions/runner-images.git
synced 2025-12-17 15:20:11 +00:00
Add ImageRepositoryPath env variable for Ubuntu 22 (#5462)
* Use image_repository_path variable * Add ImageRepositoryPath to build image script
This commit is contained in:
@@ -19,6 +19,9 @@ if (-not (Test-Path $TemplatePath))
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Set Image repository path env variable, this is a workaround for Ubuntu 22.04 until this is fixed https://github.com/hashicorp/packer/issues/11733
|
||||||
|
$env:ImageRepositoryPath = "."
|
||||||
|
|
||||||
$Image = [io.path]::GetFileNameWithoutExtension($TemplatePath)
|
$Image = [io.path]::GetFileNameWithoutExtension($TemplatePath)
|
||||||
$TempResourceGroupName = "${ResourcesNamePrefix}_${Image}"
|
$TempResourceGroupName = "${ResourcesNamePrefix}_${Image}"
|
||||||
$InstallPassword = [System.GUID]::NewGuid().ToString().ToUpper()
|
$InstallPassword = [System.GUID]::NewGuid().ToString().ToUpper()
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
"virtual_network_subnet_name": "{{env `VNET_SUBNET`}}",
|
"virtual_network_subnet_name": "{{env `VNET_SUBNET`}}",
|
||||||
"private_virtual_network_with_public_ip": "{{env `PRIVATE_VIRTUAL_NETWORK_WITH_PUBLIC_IP`}}",
|
"private_virtual_network_with_public_ip": "{{env `PRIVATE_VIRTUAL_NETWORK_WITH_PUBLIC_IP`}}",
|
||||||
"allowed_inbound_ip_addresses": "{{env `AGENT_IP`}}",
|
"allowed_inbound_ip_addresses": "{{env `AGENT_IP`}}",
|
||||||
|
"image_repository_path": "{{env `IMAGEREPOSITORYPATH`}}",
|
||||||
"image_folder": "/imagegeneration",
|
"image_folder": "/imagegeneration",
|
||||||
"imagedata_file": "/imagegeneration/imagedata.json",
|
"imagedata_file": "/imagegeneration/imagedata.json",
|
||||||
"installer_script_folder": "/imagegeneration/installers",
|
"installer_script_folder": "/imagegeneration/installers",
|
||||||
@@ -49,7 +50,7 @@
|
|||||||
"virtual_network_subnet_name": "{{user `virtual_network_subnet_name`}}",
|
"virtual_network_subnet_name": "{{user `virtual_network_subnet_name`}}",
|
||||||
"private_virtual_network_with_public_ip": "{{user `private_virtual_network_with_public_ip`}}",
|
"private_virtual_network_with_public_ip": "{{user `private_virtual_network_with_public_ip`}}",
|
||||||
"allowed_inbound_ip_addresses": "{{user `allowed_inbound_ip_addresses`}}",
|
"allowed_inbound_ip_addresses": "{{user `allowed_inbound_ip_addresses`}}",
|
||||||
"user_data_file": "./images/linux/scripts/base/configure-legacy-ssh.sh",
|
"user_data_file": "{{user `image_repository_path`}}/images/linux/scripts/base/configure-legacy-ssh.sh",
|
||||||
"os_type": "Linux",
|
"os_type": "Linux",
|
||||||
"image_publisher": "canonical",
|
"image_publisher": "canonical",
|
||||||
"image_offer": "0001-com-ubuntu-server-jammy",
|
"image_offer": "0001-com-ubuntu-server-jammy",
|
||||||
|
|||||||
Reference in New Issue
Block a user