Gallery project

⚙️ GitHub Actions runner at home

Free CI on your beefy machine. Faster than GitHub-hosted runners for big builds. Reach internal services on your tailnet (private package registries, internal APIs) directly.

Gallery Dev Workflow Advanced Half-day Prereqs: M3 + a GitHub repo

Why this project

GitHub-hosted runners have minute limits, burn money on private repos, and can't reach your internal infrastructure. A self-hosted runner on a beefy machine you already own is dramatically faster and free, and being on your tailnet means it can pull from private package registries and internal services without exposing them.

Who this helps

What you get

PUBLIC INTERNET YOUR HOST TAILNET 🐙 GitHubqueues jobs · streams logs ⚙️ self-hosted runnertag:ci · tailnet device · systemd servicepolls GitHub · runs workflow steps 🗄️ private DBtag:db 📦 internal registrytag:registry 🔐 secrets / vaultinternal only

Runner registers with GitHub via outbound API; jobs run on your host. Tailnet membership lets the runner reach private internal services (DB, registry, secrets) without exposing them publicly.

Prerequisites

Steps

Install the runner ~10 min

Follow GitHub's official runner setup: repo Settings → Actions → Runners → New runner. They give you a script — pre-baked with a token, registers the machine.

Run it as a service ~5 min

cd ~/actions-runner
sudo ./svc.sh install
sudo ./svc.sh start
sudo ./svc.sh status

Auto-starts at boot. Works without you logged in.

Tag the host and ACL it ~3 min

If Tailscale is already running on this host, you're set. Tag it tag:ci and write an ACL granting it source access only to specific destinations:

{
  "tagOwners": { "tag:ci": ["group:adults"] },
  "acls": [
    { "action": "accept", "src": ["tag:ci"], "dst": ["tag:registry:*", "tag:db:5432"] }
  ]
}

Use it in workflows ~2 min

jobs:
  build:
    runs-on: self-hosted    # instead of ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: cargo build --release

For more isolation: ephemeral container runners +30 min

The basic runner runs jobs on the bare host — your secrets and disk state persist between jobs. For real isolation, use the Actions Runner Controller on Kubernetes, or roll ephemeral Docker runners.

Each ephemeral runner uses an ephemeral Tailscale auth key (M3L6) — joins the tailnet, runs the job, exits, removes itself.

Verify

Common issues

Caveats

Where this leads