mirror of
https://github.com/actions/runner.git
synced 2026-01-04 17:17:20 +08:00
markdown
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
# Automate Configuring Self-Hosted Runner Pools
|
# Automate Configuring Self-Hosted Runners
|
||||||
|
|
||||||
## Latest Release as Service on Nix VMs
|
|
||||||
|
|
||||||
## Export PAT
|
## Export PAT
|
||||||
|
|
||||||
@@ -10,7 +9,7 @@ Before running any of these sample scripts, create a GitHub PAT and export it be
|
|||||||
export RUNNER_CFG_PAT=yourPAT
|
export RUNNER_CFG_PAT=yourPAT
|
||||||
```
|
```
|
||||||
|
|
||||||
### Create running as a service
|
## Create running as a service
|
||||||
|
|
||||||
**Scenario**: Run on a machine or VM (not container) which automates:
|
**Scenario**: Run on a machine or VM (not container) which automates:
|
||||||
|
|
||||||
@@ -20,14 +19,14 @@ export RUNNER_CFG_PAT=yourPAT
|
|||||||
- Configure the runner
|
- Configure the runner
|
||||||
- Run as a systemd (linux) or Launchd (osx) service
|
- Run as a systemd (linux) or Launchd (osx) service
|
||||||
|
|
||||||
[Sample script here](../scripts/create-latest-svc.sh)
|
:point_right: [Sample script here](../scripts/create-latest-svc.sh) :point_left:
|
||||||
|
|
||||||
Run as a one-line. NOTE: replace with yourorg/yourrepo (repo level) or just yourorg (org level)
|
Run as a one-line. NOTE: replace with yourorg/yourrepo (repo level) or just yourorg (org level)
|
||||||
```bash
|
```bash
|
||||||
curl https://raw.githubusercontent.com/actions/runner/automate/scripts/create-latest-svc.sh | bash -s yourorg/yourrepo
|
curl https://raw.githubusercontent.com/actions/runner/automate/scripts/create-latest-svc.sh | bash -s yourorg/yourrepo
|
||||||
```
|
```
|
||||||
|
|
||||||
### Uninstall running as service
|
## Uninstall running as service
|
||||||
|
|
||||||
**Scenario**: Run on a machine or VM (not container) which automates:
|
**Scenario**: Run on a machine or VM (not container) which automates:
|
||||||
|
|
||||||
@@ -35,7 +34,7 @@ curl https://raw.githubusercontent.com/actions/runner/automate/scripts/create-la
|
|||||||
- Acquires a removal token
|
- Acquires a removal token
|
||||||
- Removes the runner
|
- Removes the runner
|
||||||
|
|
||||||
[Sample script here](../scripts/remove-svc.sh)
|
:point_right: [Sample script here](../scripts/remove-svc.sh) :point_left:
|
||||||
|
|
||||||
Repo level one liner. NOTE: replace with yourorg/yourrepo (repo level) or just yourorg (org level)
|
Repo level one liner. NOTE: replace with yourorg/yourrepo (repo level) or just yourorg (org level)
|
||||||
```bash
|
```bash
|
||||||
@@ -50,7 +49,7 @@ curl https://raw.githubusercontent.com/actions/runner/automate/scripts/remove-sv
|
|||||||
- Resolves id from name
|
- Resolves id from name
|
||||||
- Deletes the runner
|
- Deletes the runner
|
||||||
|
|
||||||
[Sample script here](../scripts/delete.sh)
|
:point_right: [Sample script here](../scripts/delete.sh) :point_left:
|
||||||
|
|
||||||
Repo level one liner. NOTE: replace with yourorg/yourrepo (repo level) or just yourorg (org level) and replace runnername
|
Repo level one liner. NOTE: replace with yourorg/yourrepo (repo level) or just yourorg (org level) and replace runnername
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
Reference in New Issue
Block a user