This repository was archived by the owner on Jun 8, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Quick Start
GrammaTonic edited this page Sep 4, 2025
·
2 revisions
Get your GitHub Actions self-hosted runner up and running in 5 minutes!
- Docker and Docker Compose installed
- GitHub repository with admin access
- GitHub personal access token
git clone https://github.com/GrammaTonic/github-runner.git
cd github-runner# Copy configuration template
cp config/runner.env.template config/runner.env
# Edit with your settings
nano config/runner.envMinimal required configuration:
GITHUB_TOKEN=ghp_your_personal_access_token_here
GITHUB_REPOSITORY=your-username/your-repository# Start the runner
docker compose -f docker/docker-compose.yml up -d
# Check status
docker compose logs runner- Go to your repository on GitHub
- Navigate to Settings → Actions → Runners
- Your runner should appear as "Online"
Create a simple workflow to test your runner:
# .github/workflows/test-runner.yml
name: Test Self-Hosted Runner
on:
workflow_dispatch:
jobs:
test:
runs-on: self-hosted
steps:
- name: Test runner
run: |
echo "🎉 Self-hosted runner is working!"
docker --version
git --version# Check logs
docker compose logs runner
# Verify token permissions
curl -H "Authorization: token YOUR_TOKEN" https://api.github.com/user# Add user to docker group
sudo usermod -aG docker $USER
newgrp docker# Clean up Docker
docker system prune -a -f- Production Setup - Scale for production use
- Monitoring - Add health checks and metrics
- Security - Secure your runners
- Troubleshooting - Fix common problems
- Use unique runner names to avoid conflicts
- Set resource limits to prevent resource exhaustion
- Enable monitoring for production deployments
- Regular cleanup prevents disk space issues
- Common Issues - Quick fixes
- Installation Guide - Detailed setup
- GitHub Issues - Report problems
⏱️ Total setup time: ~5 minutes 🎉 You're ready to run workflows on your self-hosted runner!