Credits:
GitHub allows developers to run GitHub Actions workflows on your own runners. This Docker image allows you to create your own runners on Docker.
Use the following command to start listening for jobs:
docker run -it --name my-runner \
-e RUNNER_NAME=my-runner \
-e GITHUB_ACCESS_TOKEN=token \
-e RUNNER_REPOSITORY=githubreponame \
-e RUNNER_REPOSITORY_OWNER=githubuser \
tcardonne/github-runner
The following environment variables allows you to control the configuration parameters.
| Name | Description | Required/Default value |
|---|---|---|
| RUNNER_REPOSITORY | The runner will be linked to this repository URL | Required if RUNNER_ORGANIZATION is not provided |
| RUNNER_REPOSITORY_OWNER | The runner will be linked to this repository owner | Required if RUNNER_ORGANIZATION is not provided |
| RUNNER_ORGANIZATION | The runner will be linked to this organization. | Required if RUNNER_REPOSITORY and RUNNER_ORGANIZATION is not provided |
| GITHUB_ACCESS_TOKEN | Personal Access Token. Used to dynamically fetch a new runner token (recommended, see below). | Required. |
| RUNNER_WORK_DIRECTORY | Runner's work directory | "_work" |
| RUNNER_NAME | Name of the runner displayed in the GitHub UI | Hostname of the container |
| RUNNER_LABELS | Extra labels in addition to the default: 'self-hosted,Linux,X64' (based on your OS and architecture) | "" |
| RUNNER_REPLACE_EXISTING | "true" will replace existing runner with the same name, "false" will use a random name if there is conflict | "true" |
| RUNNER_VERSION | Version of GitHub Action Runner to use | Latest available |
In order to link your runner to your repository/organization, you need to provide a GITHUB_ACCESS_TOKEN, containing a Personal Access Token.
This token will be used to dynamically fetch a new runner token, as runner tokens are valid for a short period of time.
* For a single-repository runner, your PAT should have repo scopes.
* For an organization runner, your PAT should have admin:org scopes.
Content type
Image
Digest
Size
484.2 MB
Last updated
over 5 years ago
docker pull olivercullimore/docker-github-runner