2020-04-14 20:41:49 -04:00
|
|
|
# Automate Configuring Self-Hosted Runner Pools
|
|
|
|
|
|
|
|
|
|
## Latest Release as Service on Nix VMs
|
|
|
|
|
|
|
|
|
|
[Run or copy this script for your use](../scripts/latest-svc.sh) to automate configuring a runner as a service on Linux or Mac
|
|
|
|
|
|
|
|
|
|
### Step 1: export PAT
|
|
|
|
|
|
|
|
|
|
Create a GitHub PAT and export it before running the script
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
export RUNNER_CFG_PAT=yourPAT
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Step 2: config one liner
|
|
|
|
|
|
|
|
|
|
Repo level one liner; replace yourorg/yourrepo
|
|
|
|
|
```bash
|
2020-04-14 20:48:22 -04:00
|
|
|
curl https://raw.githubusercontent.com/actions/runner/automate/scripts/latest-svc.sh | bash -s yourorg/yourrepo
|
2020-04-14 20:41:49 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Org level one liner; replace yourorg
|
|
|
|
|
|
|
|
|
|
```bash
|
2020-04-14 20:48:22 -04:00
|
|
|
curl https://raw.githubusercontent.com/actions/runner/automate/scripts/latest-svc.sh | bash -s yourorg
|
2020-04-14 20:41:49 -04:00
|
|
|
```
|