My own implementation of the GitHub self-hosted runner configuration in a Docker image format so I can easily set up runners for my stuff.
docker run bemesko/gh-runner REPO_URL GITHUB_TOKEN
REPO_URL
is the HTTPS URL of the GitHub repository you wish to add your runner toGITHUB_TOKEN
is a GitHub API token with therepo
permissions
Running this image registers a new runner into the specified repository with a random name and the tags self-hosted
, Linux
and X64
.
The first job this runner will run might take a few more seconds than usual since it might detect a new github runner version and update itself.
-
Receive an API token insted of the repo-specific token
-
Make optional parameter for docker username
-
Consider adding other types of runners? (currently only supports linux x64)