Docker image with Docker-in-Docker (DinD) and GitHub Actions Runner managed by Supervisor, enabling container execution without extra setup
- Add a new GitHub Actions Runner
- Copy the runner token ($GITHUB_ACTIONS_RUNNER_TOKEN) from the runner’s details page
- Create a dockerdirectory to mount as/var/lib/docker
- Run the scalified/github-actions-runnerDocker image:
docker run \
    -d \
    --name ghar-runner-1 \
    --hostname ghar-runner-1 \
    --restart unless-stopped \
    --privileged \
    -v $(pwd)/docker:/var/lib/docker \
    -e URL=https://github.com/$GITHUB_ORG_NAME \
    -e TOKEN=AAAAAAAAAAAAAAAAAAAAAAAAAAAAA \
    -e LABELS=ghar-runner-1 \
    -e GROUP=group-1 \
    scalified/github-actions-runner
| Environment Variable | Description | 
|---|---|
| URL | GitHub organization URL: https://github.com/$GITHUB_ORG_NAME | 
| TOKEN | GitHub Actions Runner token displayed after adding a new runner | 
| LABELS | Labels assigned to the GitHub Actions Runner | 
| GROUP | GitHub Actions Runner group | 
Made with ❤️ by Scalified