This repo is dedicated to support github-runners for organizations and supports other platform builds (e.g. arm64). It includes also maven, docker CLI and AWS CLI. To use host docker daemon change DOCKER_GROUP_ID arg in dockerfile to match with host docker group id.
Dockerfile for the creation of a GitHub Actions runner image to be deployed dynamically. Find the full explanation and tutorial here.
Credit to testdriven.io for the original start.sh script, which I slightly modified to make it work with a regular repository rather than with an enterprise.
docker buildx create --name multi --driver=docker-container
docker buildx build --load --builder=multi --platform=linux/arm64 -t github-runner .
replace
- [YOUR-ORG] with your org name
- [TOKEN] with Personal Access Token with
repo
,workflow
, andadmin:org
scopes.
docker run -e "ORG=[YOUR-ORG]" -e "TOKEN=[TOKEN]" github-runner