Skip to content

Commit bfcc978

Browse files
committed
Fix name and install deps.
1 parent 90e8d82 commit bfcc978

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

Dockerfile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,14 @@ RUN chown runner:runner . -R
1717
# GitHub Runner code.
1818
# Install runner to a path that won't ever be in a volume.
1919
ENV RUNNER_PATH /usr/share/github-runner
20-
# We are installing as root then switching back because we need to use the install-dependencies script.
21-
RUN ./github-runner-installer --no-run --no-config --runner-path=${RUNNER_PATH}
22-
RUN ${RUNNER_PATH}/bin/installdependencies.sh
23-
RUN chown runner:runner ${RUNNER_PATH} -R
2420

21+
# Install Dependencies
22+
RUN curl https://raw.githubusercontent.com/actions/runner/refs/tags/v2.326.0/src/Misc/layoutbin/installdependencies.sh -o install-dependencies \
23+
&& bash install-dependencies
24+
25+
# Run github-runner-installer script.
26+
#RUN ./github-runner-installer --no-run --no-config --runner-path=${RUNNER_PATH}
27+
28+
# Change runner ownership & Switch user.
29+
# RUN chown runner:runner ${RUNNER_PATH} -R
2530
USER runner

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ services:
1010
- ./:/github-runner-installer
1111
environment:
1212
GITHUB_TOKEN: ${GITHUB_TOKEN}
13-
GITHUB_REPOSITORY: jonpugh/github-runner
13+
GITHUB_REPOSITORY: operations-project/github-runner-installer
1414
RUNNER_CONFIG_LABELS: ${RUNNER_CONFIG_LABELS:-runner@localhost}
1515
entrypoint: ./docker-entrypoint
1616
command: ./github-runner-installer

github-runner-installer

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ verify() {
9393
# Defaults. If ENV vars exist, use them. If not, use these values.
9494
RUNNER_PATH=${RUNNER_PATH:-"runner"}
9595
RUNNER_CONFIG_NAME=${RUNNER_CONFIG_NAME:-$(whoami)@$(hostname -f)}
96-
RUNNER_CONFIG_LABELS=${RUNNER_CONFIG_LABELS:-"jonpugh/github-runner-installer"}
96+
RUNNER_CONFIG_LABELS=${RUNNER_CONFIG_LABELS:-"operations-project/github-runner-installer"}
9797
RUNNER_CONFIG_OPTIONS=${RUNNER_CONFIG_OPTIONS:-""}
9898

9999
# Whether to run the runner

0 commit comments

Comments
 (0)