File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -312,5 +312,18 @@ CMD /opt/android/container-setup.sh && buildkite-agent start
312
312
#
313
313
FROM builder-base AS actions-builder
314
314
315
- WORKDIR /home/runner
316
- USER runner
315
+ ARG GITHUB_RUNNER_VERSION
316
+
317
+ RUN useradd gha -u 1001 -m -s /bin/bash
318
+ RUN adduser gha sudo
319
+ RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
320
+ WORKDIR /home/gha
321
+ USER gha
322
+
323
+ ENV RUNNER_MANUALLY_TRAP_SIG=1
324
+ ENV ACTIONS_RUNNER_PRINT_LOG_TO_STDOUT=1
325
+ RUN mkdir actions-runner && \
326
+ cd actions-runner && \
327
+ curl -O -L https://github.com/actions/runner/releases/download/v$GITHUB_RUNNER_VERSION/actions-runner-linux-x64-$GITHUB_RUNNER_VERSION.tar.gz && \
328
+ tar xzf ./actions-runner-linux-x64-$GITHUB_RUNNER_VERSION.tar.gz && \
329
+ rm ./actions-runner-linux-x64-$GITHUB_RUNNER_VERSION.tar.gz
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ services:
10
10
dockerfile : Dockerfile
11
11
target : actions-builder
12
12
args :
13
- BASE_IMAGE : ghcr.io/actions/actions-runner:2.326.0
13
+ BASE_IMAGE : ubuntu:jammy
14
+ GITHUB_RUNNER_VERSION : " 2.326.0"
14
15
<< : *compiler_versions
15
16
16
17
android-buildkite-builder :
You can’t perform that action at this time.
0 commit comments