Menu

1 / 4

Multiple GitHub Runners on a Single Machine

DEV Community: cicd·tomipnh·2 days ago
#wAAZet27
#devtocicd#devto#dev#runner#github
Long article (952 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.