PROBLEM
After GitLab changed its pricing, I migrated our organization's repositories to GitHub. One of the bigger issues in that migration was setting up self-hosted runners.
GitLab's runner is a single binary with a simple TOML config and just works. GitHub's self-hosted runner is a lot more involved — bash scripts, hundreds of .NET Core DLLs, and a more complicated setup overall. GitLab's runner also has a concurrent parameter to run multiple jobs in parallel; GitHub's doesn't have an equivalent, so running several jobs at once means running several runner instances.
Here's how I set that up.
SUMMARY
myoung34/docker-github-actions-runner handles this well — self-spawning, self-hosted GitHub Actions runners in Docker, with Docker-in-Docker support.
Usage docs: docker-github-actions-runner usage
SETUP
I avoided using a personal access token (PAT) tied to a person's account for organization-wide runners, and used a GitHub App instead.…