---
title: "Deploy GitHub Actions Runner"
description: "A self-hosted GitHub Actions runner"
category: "Other"
url: https://railway.com/deploy/cd7y1G
---

# Deploy GitHub Actions Runner

A self-hosted GitHub Actions runner

**[Deploy GitHub Actions Runner on Railway](https://railway.com/template/cd7y1G)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/cd7y1G/manifest.json

- **Creator:** Dylan Anthony's Projects
- **Category:** Other
- **Total deploys:** 73

## Template content

### myoung34/github-runner

- **Image:** myoung34/github-runner

## Documentation

Run GitHub Actions in Railway if, for example, you want to access your services or databases using private networking.

**Caution! GitHub recommends only using self-hosted runners for private repositories!!**

## Per-repository runner

Go to your repository settings, then click actions, then runners, then "New self-hosted runner". Under the "configure" section, you'll see a line with `--url` and `--token`. Put the value of `--url` in the `REPO_URL` env var, and the value of `--token` in the `RUNNER_TOKEN ` env var.

## Organization-wide runner

Go to your org's settings, then actions, then runners. Click "New Runner", then "Self-hosted runner". Under "Configure", copy the value after `--token` and paste it into the `RUNNER_TOKEN` env var.

Set `RUNNER_SCOPE` to `org` and `ORG_NAME` to the name of your org.

## Using it in GitHub Actions

Just set `runs-on` to `self-hosted` in your workflow.

## More config

See [the GitHub repo](https://github.com/myoung34/docker-github-actions-runner?tab=readme-ov-file#environment-variables) for all available environment variables and tags.

## App sleeping

Do not use app sleeping with this template. Runners work by long-polling and will not wake themselves up when there's a new job to run.

## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/cd7y1G
