osmates runner add
Add a GitHub runner pool, whose slots fill at once.
osmates runner add [<options>] <name> --from <from> --github <scope> --credential <credential>Each runner has the labels self-hosted, its system (Linux, macOS or Windows) and ARM64, and those --label adds. --github takes owner/repository for a repository's runners, or an organization's name. The token needs the Administration permission of the repository, or Self-hosted runners of the organization, with write access. A macOS pool has at most 2 slots.
Arguments
<name>RequiredThe pool's name: lowercase letters, digits and hyphens.
--from <from>RequiredThe machine or template each slot clones.
--github <scope>RequiredThe repository, as owner/repository, or the organization.
--credential <credential>RequiredThe credential that holds the GitHub token.
--slots <slots>How many clones run at once.
Default:
1--label <label>RepeatableA label of the pool's runners; repeat for more.
--group <group>The runner group's id; 1 is the default group.
Default:
1--api <api>GitHub's API, such as https://<host>/api/v3 for GitHub Enterprise Server.
Default:
https://api.github.com--runner-folder <runner-folder>Where GitHub's runner is unpacked in the guest.
--desktopRun the runner as the user signed in at the screen, for jobs that need the desktop.
--jsonPrint machine-readable JSON.
JSON output
With --json, it prints an object with these fields.
JSON Schema: /schemas/0/cli/runner/add.json
lastFailureobjectlastFailure.atstring (date-time)RequiredlastFailure.textstringRequiredpoolobjectRequiredpool.apistring (uri)Requiredpool.credentialstringRequiredpool.githubobjectRequiredpool.labelsarray of stringsRequiredpool.namestringRequiredpool.onDesktopbooleanRequiredpool.runnerFolderstringpool.runnerGroupintegerRequiredpool.slotsintegerRequiredpool.sourcestringRequiredrunsEndedintegerRequiredslotsarray of objectsRequiredslots[].clonestringslots[].detailstringslots[].indexintegerRequiredslots[].phasestringRequiredOne of
waiting,starting,registering,running,cleaning.slots[].runnerintegerslots[].sincestring (date-time)RequiredsystemstringOne of
linux,macOS,windows,freeBSD.
Fields nested deeper are in the schema.
Exit statuses
Its exit status is one of these.
| Status | Meaning |
|---|---|
| 0 | The command did what it was asked. |
| 1 | The command failed; with --json, standard error's last line is the error object. |
| 64 | The command line is wrong, as ArgumentParser found before the command ran. |
| 65 | What was given is wrong, found while the command ran; the same command fails until it changes. |
| 75 | The same command can work later with nothing changed, as while an update finishes. |
| 130 | Control-C cancelled what the command started. |