Default to git.site.latha.org/nandi registry

ORBIT_REGISTRY overrides it, as does a registry saved by orbit init.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nandiandClaude Sonnet 5.5 committed 2026-11-26 18:30:06 -08:00
1 parent f938945901
commit 64fd782b0d
3 files changed
+30 -16

No files matched your search

+5 -4
View File
@@ -47,8 +47,7 @@ Because these are ordinary OCI artifacts, you can sign them with `cosign` or `no
## Usage
```sh
oras login git.site.latha.org # once, with a Gitea token
orbit init git.site.latha.org/<owner> # Gitea: registry is <host>/<owner>
oras login git.site.latha.org # once, with a Gitea token (needed to publish)
eval "$(orbit env)"
orbit publish examples/hello
@@ -59,6 +58,8 @@ orbit rollback hello
orbit remove hello
```
The default registry is `git.site.latha.org/nandi`, so no setup is needed. Override it for one command or shell with `ORBIT_REGISTRY=<host>/<owner>`, or save another one with `orbit init <registry>`. The order is `ORBIT_REGISTRY`, then the saved config, then the default. Orbit doesn't record which registry a package came from, so `upgrade` looks in whichever one is active.
Use `--plain-http` (or `ORBIT_PLAIN_HTTP=1`) for a local `registry:2` without TLS:
```sh
@@ -88,8 +89,8 @@ package_dir=$(sh scripts/package-orbit.sh) &&
_build/native/release/build/main/main.exe publish "$package_dir"
```
This publishes to the configured registry, so run `orbit init <registry>` (or
set `ORBIT_REGISTRY`) first and log in with `oras login <host>` if needed. The
This publishes to the active registry (set `ORBIT_REGISTRY` to override the
default), so log in with `oras login <host>` first if needed. The
package contains a native Linux binary for the build machine's architecture.
Use the same architecture on the install machine. `oras` and `tar` are still
system prerequisites; the package does not bundle them.