Docker Compose file for a Github Runner (Docker image created by tcardonne - see https://hub.docker.com/r/tcardonne/github-runner)
- Clone the repository
git clone https://github.com/Thumbscrew/github-runner-docker-compose.git
cd github-runner-docker-compose- Create a copy of .env.example
cp .env.example .env-
Create your runner in your repository settings (Settings -> Actions -> Runners -> New self-hosted runner)
-
Copy the token and set the
RUNNER_REPOSITORYandRUNNER_TOKENin the.envfile -
Bring up the containers!
sudo docker-compose -p github_runner up -d