@r5n/hydra 0.11.3 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,18 +6,16 @@
6
6
 
7
7
  **One machine. Many runners.**
8
8
 
9
- Create and manage local self-hosted GitHub Actions runners for a repository or organisation. Hydra downloads each runner version once, shares its binaries across the fleet and registers runners through your authenticated `gh` CLI.
9
+ Create and manage local self-hosted GitHub Actions runners for a repository or organisation. Hydra downloads each runner version once, shares its binaries across the fleet and registers runners through the GitHub API, signed in with your `gh` login or a GitHub App.
10
10
 
11
11
  [![npm version](https://img.shields.io/npm/v/@r5n/hydra.svg)](https://www.npmjs.com/package/@r5n/hydra) [![License](https://img.shields.io/npm/l/@r5n/hydra.svg)](./LICENSE)
12
12
 
13
- Each working directory has its own fleet, with profiles and runner state in `.hydra/`.
13
+ Hydra keeps its profiles and runner state in one home, `~/.hydra` by default, whichever directory you run it from. Set `HYDRA_HOME` or pass `--home <absolute path>` to use another one.
14
14
 
15
15
  ## Quick start
16
16
 
17
17
  ```sh
18
18
  bun add -g @r5n/hydra
19
- mkdir ~/runners
20
- cd ~/runners
21
19
  hydra init https://github.com/owner/repo -c 2
22
20
  hydra create
23
21
  hydra start
@@ -33,21 +31,24 @@ hydra status
33
31
  | Configure a repository or organisation | `hydra init [url]` |
34
32
  | Create runners up to the target count | `hydra create [profile] [count]` |
35
33
  | Start or stop runners | `hydra start [profile] [ids...]` / `hydra stop [profile] [ids...]` |
36
- | Inspect local runner state | `hydra status` |
34
+ | Inspect runner state, here and on GitHub | `hydra status [--github]` |
35
+ | Delete stale GitHub registrations of removed runners | `hydra reconcile --dry-run` / `hydra reconcile --yes` |
37
36
  | Tail the latest job log | `hydra logs [id]` |
37
+ | Check the home, credentials, DNS and each runner's job hooks | `hydra doctor` |
38
38
  | Preview disk cleanup | `hydra cleanup --dry-run` |
39
- | Update shared runner binaries | `hydra update` |
39
+ | Update runner binaries and job hooks | `hydra update` |
40
40
  | Deregister and remove runners | `hydra remove [profile] [ids...]` |
41
41
  | Manage fleet profiles | `hydra profile` |
42
+ | Retire a 0.x fleet without cutting off a job | `hydra legacy inventory \| drain \| stop \| deregister \| wipe` |
42
43
 
43
- Runners are background processes; start them again after a reboot. Cleanup preserves job workspaces by default, and automatic runner updates are disabled in favour of `hydra update`.
44
+ Runners are background processes; start them again after a reboot. Cleanup preserves job workspaces by default, and automatic runner updates are disabled in favour of `hydra update`. Every job first waits for DNS to resolve the GitHub hosts, so a brief resolver outage delays the job instead of failing its checkout. New profiles also remove each job's workspace when it finishes; runners still share one user, so keep them to private repositories you trust.
44
45
 
45
- See the [command and configuration reference](https://github.com/r5n-labs/clis/blob/develop/packages/hydra/docs/reference.md) for flags, profiles, cleanup policy and storage details.
46
+ See the [command and configuration reference](https://github.com/r5n-labs/clis/blob/develop/packages/hydra/docs/reference.md) for flags, profiles, cleanup policy and storage details. Hydra 0.12 and earlier kept state in `.hydra` of the working directory; [upgrading](https://github.com/r5n-labs/clis/blob/develop/packages/hydra/docs/reference.md#upgrading-from-012-or-earlier) shows how to keep using such a fleet.
46
47
 
47
48
  ## Requirements
48
49
 
49
50
  - Bun, `bash`, `curl` and `tar`.
50
- - Authenticated `gh` (`gh auth login`). Repository runners require repository admin access; organisation runners require the `admin:org` scope. Hydra obtains registration and removal tokens through `gh api` without storing them.
51
+ - An authenticated `gh` (`gh auth login`), or a GitHub App configured as [credentials](https://github.com/r5n-labs/clis/blob/develop/packages/hydra/docs/reference.md#github-credentials). Repository runners require repository admin access; organisation runners require the `admin:org` scope, or the App's Self-hosted runners permission. Hydra mints registration and removal tokens in memory and hands them to the runner's `config.sh` in its environment, never on its command line.
51
52
  - macOS on Apple Silicon or Linux on x64. Windows is not supported: registration and startup use the runner's Bash scripts.
52
53
 
53
54
  ## Licence