Docker container to run GitHub self-hosted runner. GitHub Runner can be assigned to both entire GitHub organization or particular personal repository. GitHub does not support assigning runner to the entire User Profile.
-
Build docker image:
docker build -t gh-runner-image . -
Run docker container:
docker run \ --detach \ --env GITHUB_OBJECT=<YOUR-GITHUB-ORGANIZATION-OR-PERSONAL-REPOSITORY> \ --env ACCESS_TOKEN=<YOUR-GITHUB-ACCESS-TOKEN> \ --name GH-runner \ gh-runner-imageGITHUB_OBJECT- The name of the organization, or repository path in format:OWNER/REPO(example:StanislawHornaGitHub/SelfHostedRunner)ACCESS_TOKEN- The github access token. This token must have the permissions to register self-hosted runner