The root keeps README.md; every subdirectory README must be <dir>.readme.md with leading dots stripped. Add a blocking governance checker with 12 tests, wire it into package scripts, CI, and pre-commit, and rename the existing subdirectory READMEs.
52 lines
1.8 KiB
Markdown
52 lines
1.8 KiB
Markdown
# Seal Use Infrastructure Operations
|
|
|
|
## Release promotion
|
|
|
|
GitHub Actions is responsible only for building and publishing the GitHub
|
|
Release. On WSL, `seal-use-release-sync.timer` polls the latest release every
|
|
15 minutes and promotes it in this order:
|
|
|
|
1. `seal-use-darwin-arm64.tar.gz`
|
|
2. `checksums.txt`
|
|
3. the remaining archives
|
|
4. raw platform binaries
|
|
|
|
The first archive becomes available as soon as it is present in Gitea.
|
|
The remaining assets retry idempotently on later timer runs if needed.
|
|
Promotion mirrors all published release assets as well as Git repository branches and tags to the local Gitea mirror. It does not update package-manager repositories.
|
|
|
|
The WSL worker uses its local mihomo listener at `http://127.0.0.1:7897` only
|
|
for GitHub. It does not enable TUN or expose a LAN listener. Local Gitea
|
|
traffic stays direct through `127.0.0.1:3001`.
|
|
|
|
The WSL mihomo service is defined by `systemd/mihomo.service`. Its runtime
|
|
config is a private copy of the selected mac15 Clash profile at
|
|
`/home/dev/.config/mihomo/config.yaml`; the profile is not committed. The WSL
|
|
copy retains internal DNS settings but removes DNS listeners, so mihomo only
|
|
opens its loopback proxy port.
|
|
|
|
Useful WSL commands:
|
|
|
|
```sh
|
|
systemctl status seal-use-release-sync.timer
|
|
systemctl start seal-use-release-sync.service
|
|
journalctl -u seal-use-release-sync.service -n 100 --no-pager
|
|
systemctl status mihomo.service
|
|
```
|
|
|
|
Credentials are stored as `0600` files under
|
|
`~/.config/seal-use/`; they must never be committed or printed.
|
|
|
|
## Cross-host health check
|
|
|
|
From mac15, run:
|
|
|
|
```sh
|
|
./host-infra/infra-healthcheck.sh
|
|
```
|
|
|
|
It emits JSON checks for mac15, the Mac15-to-WSL Tailscale/SSH path, WSL,
|
|
Windows, mac13, and Aliyun, including the release-sync timer state and the last
|
|
successful Gitea promotion. The script is read-only; a failed check
|
|
does not restart or mutate any service.
|