refactor: location of some runner cmds (#1337)
Co-authored-by: toast-gear <toast-gear@users.noreply.github.com>
This commit is contained in:
parent
8db071c4ba
commit
4a3b7bc8d5
|
|
@ -66,7 +66,6 @@ RUN set -vx; \
|
||||||
&& usermod -aG docker runner \
|
&& usermod -aG docker runner \
|
||||||
&& echo "%sudo ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers
|
&& echo "%sudo ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers
|
||||||
|
|
||||||
ENV RUNNER_ASSETS_DIR=/runnertmp
|
|
||||||
ENV HOME=/home/runner
|
ENV HOME=/home/runner
|
||||||
|
|
||||||
# Uncomment the below COPY to use your own custom build of actions-runner.
|
# Uncomment the below COPY to use your own custom build of actions-runner.
|
||||||
|
|
@ -92,6 +91,7 @@ ENV HOME=/home/runner
|
||||||
# libyaml-dev is required for ruby/setup-ruby action.
|
# libyaml-dev is required for ruby/setup-ruby action.
|
||||||
# It is installed after installdependencies.sh and before removing /var/lib/apt/lists
|
# It is installed after installdependencies.sh and before removing /var/lib/apt/lists
|
||||||
# to avoid rerunning apt-update on its own.
|
# to avoid rerunning apt-update on its own.
|
||||||
|
ENV RUNNER_ASSETS_DIR=/runnertmp
|
||||||
RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \
|
RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \
|
||||||
&& if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "i386" ]; then export ARCH=x64 ; fi \
|
&& if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "i386" ]; then export ARCH=x64 ; fi \
|
||||||
&& mkdir -p "$RUNNER_ASSETS_DIR" \
|
&& mkdir -p "$RUNNER_ASSETS_DIR" \
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,6 @@ RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \
|
||||||
dockerd --version; \
|
dockerd --version; \
|
||||||
docker --version
|
docker --version
|
||||||
|
|
||||||
ENV RUNNER_ASSETS_DIR=/runnertmp
|
|
||||||
ENV HOME=/home/runner
|
ENV HOME=/home/runner
|
||||||
|
|
||||||
# Runner download supports amd64 as x64
|
# Runner download supports amd64 as x64
|
||||||
|
|
@ -82,6 +81,7 @@ ENV HOME=/home/runner
|
||||||
# libyaml-dev is required for ruby/setup-ruby action.
|
# libyaml-dev is required for ruby/setup-ruby action.
|
||||||
# It is installed after installdependencies.sh and before removing /var/lib/apt/lists
|
# It is installed after installdependencies.sh and before removing /var/lib/apt/lists
|
||||||
# to avoid rerunning apt-update on its own.
|
# to avoid rerunning apt-update on its own.
|
||||||
|
ENV RUNNER_ASSETS_DIR=/runnertmp
|
||||||
RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \
|
RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \
|
||||||
&& if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "i386" ]; then export ARCH=x64 ; fi \
|
&& if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "i386" ]; then export ARCH=x64 ; fi \
|
||||||
&& mkdir -p "$RUNNER_ASSETS_DIR" \
|
&& mkdir -p "$RUNNER_ASSETS_DIR" \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue