Skip to content

Commit 997a1e5

Browse files
authored
Rename github-runner-installer to github-runner-starter (#6)
1 parent 03f7189 commit 997a1e5

6 files changed

Lines changed: 17 additions & 17 deletions

File tree

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,18 @@ jobs:
4040
- name: Help
4141
run: |
4242
echo "Hi from .github/workflows/tests.yml!"
43-
./github-runner-installer --help
43+
./github-runner-starter --help
4444
4545
- name: Run
4646
run: |
47-
./github-runner-installer \
47+
./github-runner-starter \
4848
--run \
4949
--name=${RUNNER_CONFIG_NAME} \
5050
--config-sh-options=--ephemeral
5151
5252
- name: Run again
5353
run: |
54-
./github-runner-installer \
54+
./github-runner-starter \
5555
--run \
5656
--name=${RUNNER_CONFIG_NAME} \
5757
--config-sh-options=--ephemeral

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ RUN yum install -y \
1010
jq
1111

1212
# This codebase. The runner wrapper script.
13-
COPY ./ /github-runner-installer
14-
WORKDIR /github-runner-installer
13+
COPY ./ /github-runner-starter
14+
WORKDIR /github-runner-starter
1515
RUN chown runner:runner . -R
1616

1717
# GitHub Runner code.
@@ -22,8 +22,8 @@ ENV RUNNER_PATH /usr/share/github-runner
2222
RUN curl https://raw.githubusercontent.com/actions/runner/refs/tags/v2.326.0/src/Misc/layoutbin/installdependencies.sh -o install-dependencies \
2323
&& bash install-dependencies
2424

25-
# Run github-runner-installer script.
26-
#RUN ./github-runner-installer --no-run --no-config --runner-path=${RUNNER_PATH}
25+
# Run github-runner-starter script.
26+
#RUN ./github-runner-starter --no-run --no-config --runner-path=${RUNNER_PATH}
2727

2828
# Change runner ownership & Switch user.
2929
# RUN chown runner:runner ${RUNNER_PATH} -R

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# github-runner-installer
1+
# github-runner-starter
22
A single script to install, configure, launch, and cleanup GitHub runners.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
],
1212
"require": {},
1313
"bin": [
14-
"github-runner-installer"
14+
"github-runner-starter"
1515
]
1616
}

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ services:
77
image: jonpugh/github-runner
88
hostname: localhost
99
volumes:
10-
- ./:/github-runner-installer
10+
- ./:/github-runner-starter
1111
environment:
1212
GITHUB_TOKEN: ${GITHUB_TOKEN}
13-
GITHUB_REPOSITORY: operations-project/github-runner-installer
13+
GITHUB_REPOSITORY: operations-project/github-runner-starter
1414
RUNNER_CONFIG_LABELS: ${RUNNER_CONFIG_LABELS:-runner@localhost}
1515
entrypoint: ./docker-entrypoint
16-
command: ./github-runner-installer
16+
command: ./github-runner-starter
1717
build: ./
1818

1919
# Give the containers more time to shutdown before being cancelled.
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ start() {
3131

3232
else
3333
say Skipped running due to --no-run option.
34-
say Exiting github-runner-installer.
34+
say Exiting github-runner-starter.
3535
fi
3636

3737
}
@@ -79,9 +79,9 @@ verify() {
7979
# Detect path to this script.
8080
# @TODO: Rename RUNNER_SCRIPT_ to reduce confusion with github runner CLI
8181
if [[ -z "$COMPOSER_RUNTIME_BIN_DIR" ]]; then
82-
RUNNER_SCRIPT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/github-runner-installer"
82+
RUNNER_SCRIPT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/github-runner-starter"
8383
else
84-
RUNNER_SCRIPT_PATH="$COMPOSER_RUNTIME_BIN_DIR/github-runner-installer"
84+
RUNNER_SCRIPT_PATH="$COMPOSER_RUNTIME_BIN_DIR/github-runner-starter"
8585
fi
8686
if [[ ! -f "${RUNNER_SCRIPT_PATH}" ]]; then
8787
say "Path detection failed."
@@ -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:-"operations-project/github-runner-installer"}
96+
RUNNER_CONFIG_LABELS=${RUNNER_CONFIG_LABELS:-"operations-project/github-runner-starter"}
9797
RUNNER_CONFIG_OPTIONS=${RUNNER_CONFIG_OPTIONS:-""}
9898

9999
# Whether to run the runner
@@ -322,7 +322,7 @@ cancel() {
322322
exit 1
323323
}
324324
say() {
325-
echo " github-runner-installer | ${*}"
325+
echo " github-runner-starter | ${*}"
326326
}
327327
line() {
328328
CHARACTER="${CHARACTER:--}"

0 commit comments

Comments
 (0)