Add ImageRepositoryPath env variable for Ubuntu 22 (#5462)

* Use image_repository_path variable

* Add ImageRepositoryPath to build image script
This commit is contained in:
Mikhail Timofeev
2022-05-02 18:51:16 +04:00
committed by GitHub
parent 8573385d4c
commit ed9d42f033
2 changed files with 5 additions and 1 deletions

View File

@@ -19,6 +19,9 @@ if (-not (Test-Path $TemplatePath))
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)
$TempResourceGroupName = "${ResourcesNamePrefix}_${Image}"
$InstallPassword = [System.GUID]::NewGuid().ToString().ToUpper()