Skip to content

Commit

Permalink
[Ubuntu, Windows] Add RUNNER_TOOL_CACHE environment variable (actions…
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-Ayupov authored and karol-pieciukiewicz committed Nov 11, 2024
1 parent 85fb50c commit dcd3047
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions images/ubuntu/scripts/build/configure-environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit dcd3047

Please sign in to comment.