Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions github/actions/self-hosted-runner/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ RUN useradd -m github && \
usermod -aG sudo github && \
echo "%sudo ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers

USER github

WORKDIR /actions-runner
RUN chown github .
USER github

RUN curl -Ls https://github.com/actions/runner/releases/download/v${RUNNER_VERSION}/actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz | tar xz \
&& sudo ./bin/installdependencies.sh

Expand All @@ -43,4 +46,4 @@ RUN sudo chmod u+x /actions-runner/entrypoint.sh
#working folder for the runner
RUN sudo mkdir /work

ENTRYPOINT ["/actions-runner/entrypoint.sh"]
ENTRYPOINT ["/actions-runner/entrypoint.sh"]