diff --git a/runner/actions-runner-dind.dockerfile b/runner/actions-runner-dind.dockerfile index 7bea7655..3e0491c6 100644 --- a/runner/actions-runner-dind.dockerfile +++ b/runner/actions-runner-dind.dockerfile @@ -74,8 +74,6 @@ RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ dockerd --version; \ docker --version -ENV HOME=/home/runner - # Runner download supports amd64 as x64 # # libyaml-dev is required for ruby/setup-ruby action. @@ -113,6 +111,7 @@ RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ VOLUME /var/lib/docker +ENV HOME=/home/runner # Add the Python "User Script Directory" to the PATH ENV PATH="${PATH}:${HOME}/.local/bin" ENV ImageOS=ubuntu20 diff --git a/runner/actions-runner.dockerfile b/runner/actions-runner.dockerfile index baa3ebbe..57699d87 100644 --- a/runner/actions-runner.dockerfile +++ b/runner/actions-runner.dockerfile @@ -67,8 +67,6 @@ RUN set -vx; \ && usermod -aG docker runner \ && echo "%sudo ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers -ENV HOME=/home/runner - # Uncomment the below COPY to use your own custom build of actions-runner. # # To build a custom runner: @@ -120,6 +118,7 @@ RUN mkdir /opt/hostedtoolcache \ # override them with scripts of the same name placed in `/usr/local/bin`. COPY entrypoint.sh logger.bash /usr/bin/ +ENV HOME=/home/runner # Add the Python "User Script Directory" to the PATH ENV PATH="${PATH}:${HOME}/.local/bin" ENV ImageOS=ubuntu20