...
You will need an on-prem machine and service account to run the runner. Either you or someone from ESCP will need root privilege to configure the service. Please contact escp-ticket@tufts.edu to create these.
After you’re able to login to the machine, and become the service account (i.e. sudo su - gitrunner1
), open a web browser and browse to your repository.service account is created, someone with root privileges should do this:
In your web browser, browse to your repository.
Go to Settings > Actions > Runners > New Self-Hosted Runner.
It will give you a series of commands to paste into the terminal, downloading and extracting a tarball. Then when you get to the
config
line, here are additional instructions: $Code Block . Instead of pasting them into the terminal, do this:
Find the line that says "./config.sh
--url
=...
"
Get the URL and the token.
Read the URL to ensure it's a specific repository, not the organization or whatever.
Run this script as root. The script installs the runner, creates the service, and launches the service as the service account. It records the URL of which repository it's working for, in the user's home directory under "actions-runner-url.txt":
Code Block /root/bin/create-gitrunner.sh username GithubRepositoryURL token
Browse back to Actions > Runners, and confirm the new runner appears there, with a green Status, and Idle.