File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed
Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ FROM ghcr.io/actions/actions-runner:${VERSION}
55# Tools that are useful during Github action runs
66ARG TOOLS="bzip2 unzip git coreutils psmisc jq curl"
77ENV WORKDIR="/home/runner"
8- ENV USER="runner"
8+ ARG USER="runner"
99
1010USER root
1111
@@ -16,6 +16,7 @@ RUN apt-get update && \
1616ADD entrypoint.sh /home/runner/
1717RUN chmod +x /home/runner/entrypoint.sh
1818
19+ USER ${USER}
1920WORKDIR ${WORKDIR}
2021
2122ENTRYPOINT [ "/home/runner/entrypoint.sh" ]
Original file line number Diff line number Diff line change 22
33set -e -o pipefail
44
5- # remap docker group permissions
6- if [ -e /var/run/docker.sock ]; then
7- chgrp docker /var/run/docker.sock
8- fi
9-
10- echo " Chaning to user '${USER} '"
11- su " ${USER} "
12-
13- ls -lah /var/run/docker.sock
14- docker ps
15-
165# store local variables and clean environment variables to make sure to not
176# expose more information than necessary.
187workdir=${WORKDIR}
You can’t perform that action at this time.
0 commit comments