https://github.com/Contrast-Security-OSS/github-runner
905
This repository contains a Dockerfile that builds a Docker image suitable for running a self-hosted GitHub runner. A Kubernetes Deployment file is also included that you can use as an example on how to deploy this container to a Kubernetes cluster.
You can build this image yourself, or use the Docker image from the Docker Hub.
docker build -t github-runner .
Register a runner to a repository.
docker run --name github-runner \
-e GITHUB_OWNER=username-or-organization \
-e GITHUB_REPOSITORY=my-repository \
-e GITHUB_PAT=[PAT] \
sanderknape/github-runner
Create an organization-wide runner.
docker run --name github-runner \
-e GITHUB_OWNER=username-or-organization \
-e GITHUB_PAT=[PAT] \
sanderknape/github-runner
Set labels on the runner.
docker run --name github-runner \
-e GITHUB_OWNER=username-or-organization \
-e GITHUB_REPOSITORY=my-repository \
-e GITHUB_PAT=[PAT] \
-e RUNNER_LABELS=comma,separated,labels \
sanderknape/github-runner
This repo contains a helm chart that can be utilized for installing:
helm upgrade --install github-runner $PWD \
--set config.owner=username-or-organization \
--set config.repo=my-repository \
--set config.secret_name=secret-name \
--set config.secret_key=secret-key
--set config.labels=comma\,separated\,labels
Content type
Image
Digest
Size
198 MB
Last updated
almost 6 years ago
docker pull contrast/github-runner