mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2026-01-06 18:17:26 +08:00
Set AGENT_TOOLSDIRECTORY in packer template (#2457)
* Set AGENT_TOOLSDIRECTORY in packer template This was set in the ruby installer but it is referenced elsewhere so I believe it makes the most sense to have this set centrally in the packer template to be referenced across multiple scripts. * Fix typo * Capitalize env var in ws2016 template for consistency * Set AGENT_TOOLSDIRECTORY in Initialize-VM.ps1 * Add missing env var for AGENT_TOOLSDIRECTORY in step in ws2016 template
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
"imagedata_file": "C:\\imagedata.json",
|
||||
"helper_script_folder": "C:\\Program Files\\WindowsPowerShell\\Modules\\",
|
||||
"psmodules_root_folder": "C:\\Modules",
|
||||
"agent_tools_directory": "C:\\hostedtoolcache\\windows",
|
||||
"install_user": "installer",
|
||||
"install_password": null,
|
||||
"capture_name_prefix": "packer",
|
||||
@@ -114,6 +115,7 @@
|
||||
"environment_vars": [
|
||||
"IMAGE_VERSION={{user `image_version`}}",
|
||||
"IMAGE_OS={{user `image_os`}}",
|
||||
"AGENT_TOOLSDIRECTORY={{user `agent_tools_directory`}}",
|
||||
"TOOLSET_JSON_PATH={{user `toolset_json_path`}}",
|
||||
"PSMODULES_ROOT_FOLDER={{user `psmodules_root_folder`}}"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user