File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
1919ENV 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
2530USER runner
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments