Sign inSign up

karthickk/github-runner

By karthickk

•Updated about 5 years ago

latest github self-hosted runner image

Image
0

10K+

karthickk/github-runner repository overview

⁠Github self-hosted runner Dockerfile and Kubernetes configuration

Docker Image Size (latest by date) Docker Pulls Docker Cloud Build Status

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⁠.

⁠Building the container

docker build -t github-runner .

⁠Features

  • Repository runners
  • Organizational runners
  • Labels
  • Graceful shutdown
  • Run nested docker containers [new]
  • compatible with github marketplace actions

⁠Examples

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] \
     -v /var/run/docker.sock:/var/run/docker.sock \
     karthickk/github-runner

Create an organization-wide runner.

docker run --name github-runner \
    -e GITHUB_OWNER=username-or-organization \
    -e GITHUB_PAT=[PAT] \
    -v /var/run/docker.sock:/var/run/docker.sock \
    karthickk/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 \
    -v /var/run/docker.sock:/var/run/docker.sock \
    karthickk/github-runner

Tag summary

Content type

Image

Digest

Size

304.4 MB

Last updated

about 5 years ago

docker pull karthickk/github-runner