Manage your github runner with your git cli
- use your local workstation as a runner
- simplify runner startup
- simplify runner maintenance
- cli to automate runner management
Generate a token here : https://github.com/settings/tokens (You need to be loged in)
To export the Github username and organisation is optional.
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
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 is not implemented yet. But I'm working on it. Pullrequests wellcome.
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
Display all runners attached to this repository.
cd /path/to/your/repo
git runner status
cd /path/to/your/repo
git project clean
cd /path/to/your/repo
git project run