Skip to content

Dockerized solution for setting up a self-hosted GitHub Actions runner. Easily deploy and scale your runners using Docker Compose.

License

Notifications You must be signed in to change notification settings

TourmalineCore/self-hosted-runner

 
 

Repository files navigation

self-hosted-runner

Getting started

  1. Clone repository to your server
git clone https://github.com/TourmalineCore/self-hosted-runner --depth 1
  1. Copy inner-circle-prod-ssh(without .pub) file that was created in inner-circle-cloud repo folder to the 'Docker Image' folder and rename it to ssh-key.
  2. Copy .inner-circle-cluster-external-kubeconfig file that was created in inner-circle-env repo folder at the VM to the Docker Image folder and rename it to kubeconfig
  3. Create a copy of .env.example, name it .env and write your variables like in the given example
REPO=TourmalineCore
REG_TOKEN=ATLGSKZGN2EN1SDTH11RUN5GOATX5
NAME=black-server-ubuntu-24.04-x64-01-runner
CLOUD_IP=192.54.219.45
CLOUD_USER=ubuntu
CLUSTER_PORT=6443
  1. Add docker group identifier to .env
echo DOCKER_GID=$(stat -c '%g' /var/run/docker.sock) >> .env
  1. Configure count of runner replicas and resources in docker-compose.yml

  2. Start runners by executing the following command:

docker compose up --detach --build

About

Dockerized solution for setting up a self-hosted GitHub Actions runner. Easily deploy and scale your runners using Docker Compose.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 87.4%
  • Shell 12.6%