mirror of
https://github.com/actions/runner-images.git
synced 2026-01-05 01:35:22 +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:
@@ -36,6 +36,7 @@ Add-Content -Path $profile.AllUsersAllHosts -Value '$ErrorActionPreference="Stop
|
||||
# Set static env vars
|
||||
setx ImageVersion $env:IMAGE_VERSION /m
|
||||
setx ImageOS $env:IMAGE_OS /m
|
||||
setx AGENT_TOOLSDIRECTORY $env:AGENT_TOOLSDIRECTORY /m
|
||||
|
||||
# Set TLS1.2
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor "Tls12"
|
||||
|
||||
Reference in New Issue
Block a user