feat(deploy): publish-images.sh one-command ghcr upload
GHCR_TOKEN=ghp_xxx scripts/publish-images.sh 0.1.0 — logs into ghcr.io as alezmad and pushes all 3 claudemesh-* images (broker + web + migrate, multi-arch) via the existing build-multiarch.sh. Supports --dry-run that prints what would publish without logging in or pushing. When user drops their GHCR PAT, shipping the 0.1.0 image tag is one command. Also documents post-trim image sizes in DEPLOY.md Step 2 (broker 341MB, migrate 653MB, web 250MB). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
20
DEPLOY.md
20
DEPLOY.md
@@ -49,6 +49,18 @@ Three images ship: `broker`, `web`, `migrate`. Use the multi-arch build script
|
||||
it produces both `linux/amd64` (VPS) and `linux/arm64` (Apple Silicon devs)
|
||||
manifests so nobody hits QEMU emulation at runtime.
|
||||
|
||||
### Fast path (ghcr.io/alezmad)
|
||||
|
||||
```bash
|
||||
GHCR_TOKEN=ghp_xxx ./scripts/publish-images.sh 0.1.0
|
||||
./scripts/publish-images.sh 0.1.0 --dry-run # preview without pushing
|
||||
```
|
||||
|
||||
One command logs in + builds + pushes all 3 images to
|
||||
`ghcr.io/alezmad/claudemesh-{broker,web,migrate}` for both archs.
|
||||
|
||||
### Manual path (any registry)
|
||||
|
||||
```bash
|
||||
# Login to your registry
|
||||
docker login <REGISTRY_HOST> -u <USERNAME>
|
||||
@@ -65,6 +77,14 @@ scripts/build-multiarch.sh ghcr.io/myorg latest # → ghcr.io/myorg/clau
|
||||
The script tags each image with both `<TAG>` and `:latest`. Builds in ~5-8 min
|
||||
on Mac M-series (arm64 native is fast, amd64 via emulation is the slow leg).
|
||||
|
||||
Image sizes (arm64, after the `pnpm deploy` trim — amd64 is similar):
|
||||
|
||||
| image | size | contains |
|
||||
| ------------------- | ------- | -------------------------------------- |
|
||||
| claudemesh-broker | ~341 MB | bun runtime, prod deps only |
|
||||
| claudemesh-migrate | ~653 MB | bun runtime + drizzle-kit (devDep) |
|
||||
| claudemesh-web | ~250 MB | node + next.js standalone output |
|
||||
|
||||
> **Mac Docker Desktop note**: if amd64 builds fail with `Input/output error`
|
||||
> during `apt-get install`, enable **Settings → General → Use Rosetta for x86/amd64
|
||||
> emulation** (not QEMU). QEMU has known I/O stability issues on macOS; Rosetta
|
||||
|
||||
Reference in New Issue
Block a user