mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 03:27:05 +00:00
[Ubuntu, Windows] Add RUNNER_TOOL_CACHE environment variable (#10780)
This commit is contained in:
@@ -31,6 +31,7 @@ sed -i 's/::1 ip6-localhost ip6-loopback/::1 localhost ip6-localhost ip6-loo
|
||||
AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache
|
||||
mkdir $AGENT_TOOLSDIRECTORY
|
||||
set_etc_environment_variable "AGENT_TOOLSDIRECTORY" "${AGENT_TOOLSDIRECTORY}"
|
||||
set_etc_environment_variable "RUNNER_TOOL_CACHE" "${AGENT_TOOLSDIRECTORY}"
|
||||
chmod -R 777 $AGENT_TOOLSDIRECTORY
|
||||
|
||||
# https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html
|
||||
|
||||
@@ -7,6 +7,7 @@ $variables = @{
|
||||
"ImageVersion" = $env:IMAGE_VERSION
|
||||
"ImageOS" = $env:IMAGE_OS
|
||||
"AGENT_TOOLSDIRECTORY" = $env:AGENT_TOOLSDIRECTORY
|
||||
"RUNNER_TOOL_CACHE" = $env:AGENT_TOOLSDIRECTORY
|
||||
}
|
||||
|
||||
$variables.GetEnumerator() | ForEach-Object {
|
||||
|
||||
Reference in New Issue
Block a user