vminit image: add 'make vminit-image-login' for Keychain-based GHCR auth
cctl login stores the credential in the macOS Keychain, which cctl images push reads automatically — so pushing needs no REGISTRY_* env vars after a one-time login. Env vars remain as a fallback. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
+3
-2
@@ -82,8 +82,9 @@ Patches #8+ live in `vminitd/` (the guest agent), which rides in the initfs OCI
|
|||||||
until that image is rebuilt from this source and published, and `ContainerEngine.vminitReference`
|
until that image is rebuilt from this source and published, and `ContainerEngine.vminitReference`
|
||||||
points at it. Build it with **`make vminit-image`** (root Makefile) — it builds cctl + the guest
|
points at it. Build it with **`make vminit-image`** (root Makefile) — it builds cctl + the guest
|
||||||
vminitd/vmexec from this vendored tree and packages `ghcr.io/abkslm/vminit:<tag>` into the local cctl
|
vminitd/vmexec from this vendored tree and packages `ghcr.io/abkslm/vminit:<tag>` into the local cctl
|
||||||
store; `make vminit-image-push` (with GHCR creds in the environment) publishes it, and `vminitReference`
|
store; `make vminit-image-push` publishes it (authenticate once with `make vminit-image-login`, which
|
||||||
is pinned to that custom image. First time on a machine, run `make vminit-image-prep` once (installs
|
stores a GHCR token in the macOS Keychain — or set `REGISTRY_HOST`/`USERNAME`/`TOKEN`), and
|
||||||
|
`vminitReference` is pinned to that custom image. First time on a machine, run `make vminit-image-prep` once (installs
|
||||||
the swiftly toolchain + musl SDK the guest cross-build needs). Bump the `-nucleicN` tag suffix and
|
the swiftly toolchain + musl SDK the guest cross-build needs). Bump the `-nucleicN` tag suffix and
|
||||||
rebuild whenever a guest patch changes. Built locally, not in CI: the host framework needs the macOS
|
rebuild whenever a guest patch changes. Built locally, not in CI: the host framework needs the macOS
|
||||||
26+ Virtualization SDK that GitHub-hosted runners lack.
|
26+ Virtualization SDK that GitHub-hosted runners lack.
|
||||||
|
|||||||
Reference in New Issue
Block a user