https://github.com/mms-gianni/git-runner
Manage your github runners with git cli
https://github.com/mms-gianni/git-runner
git git-addons git-cli git-runner github github-runners runner
Last synced: 5 months ago
JSON representation
Manage your github runners with git cli
- Host: GitHub
- URL: https://github.com/mms-gianni/git-runner
- Owner: mms-gianni
- License: mit
- Created: 2021-03-06T20:09:43.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-25T02:34:00.000Z (over 2 years ago)
- Last Synced: 2025-02-16T19:37:07.450Z (8 months ago)
- Topics: git, git-addons, git-cli, git-runner, github, github-runners, runner
- Language: Go
- Homepage:
- Size: 48.5 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-runner
Manage your github runner with your git cli




## Why
- use your local workstation as a runner
- simplify runner startup
- simplify runner maintenance
- cli to automate runner management
## Installation
Generate a token here : https://github.com/settings/tokens (You need to be loged in)To export the Github username and organisation is optional.
### Mac
```
echo 'export GITHUB_TOKEN="XXXXXXXXXXXXXXXXXXXXXXX"' >> ~/.zshrc
echo 'export GITHUB_USERNAME="change-me-to-your-username"' >> ~/.zshrc
echo 'export GITHUB_ORGANISATIONS="klustair,kubernetes"' >> ~/.zshrc
curl https://raw.githubusercontent.com/mms-gianni/git-runner/master/cmd/git-runner/git-runner.mac.64bit -o /usr/local/bin/git-runner
chmod +x /usr/local/bin/git-runner
```### Linux
```
echo 'export GITHUB_TOKEN="XXXXXXXXXXXXXXXXXXXXXXX"' >> ~/.bashrc
echo 'export GITHUB_USERNAME="change-me-to-your-username"' >> ~/.bashrc
echo 'export GITHUB_ORGANISATIONS="klustair,kubernetes"' >> ~/.bashrc
curl https://raw.githubusercontent.com/mms-gianni/git-runner/master/cmd/git-runner/git-runner.linux.64bit -o /usr/local/bin/git-runner
chmod +x /usr/local/bin/git-runner
```### Windows
Windows is not implemented yet. But I'm working on it. Pullrequests wellcome.### Docker
```
cd git-runner
echo 'export GITHUB_TOKEN="XXXXXXXXXXXXXXXXXXXXXXX"' >> .env
echo 'export GITHUB_USERNAME="change-me-to-your-username"' >> .env
echo 'export GITHUB_ORGANISATIONS="klustair,kubernetes"' >> .env
docker-compose up -d
```## Quick start
### Show status of runners
Display all runners attached to this repository.
```
cd /path/to/your/repo
git runner status
```### Remove dead runners
```
cd /path/to/your/repo
git project clean
```### Start a new runner
```
cd /path/to/your/repo
git project run
```