Repository navigation
Description
Summary
Add a release workflow that builds and publishes the five Trinity images to GHCR on every release tag, with public (anonymous) pull access. This is #2280's AC1, carved out because it is the single unchecked item blocking every marketplace and one-click channel, and it was invisible inside an issue labelled status-in-dev.
Context
docker-compose.hosted.yml, scripts/deploy/start.sh --hosted, and the #2281 Packer bundle all shipped against a registry contract that nothing satisfies. There is no publish workflow in the repo:
$ grep -rln "ghcr.io" .github/workflows/ → (nothing)
$ curl -s -o /dev/null -w "%{http_code}\n" \
https://ghcr.io/v2/abilityai/trinity-{backend,frontend,mcp-server,scheduler,agent-base}/tags/list
401 401 401 401 401
Consequence: packer build for the DigitalOcean 1-Click (#2281) fails at its first docker pull, and any operator following the documented --hosted path fails at start.sh:524. #2280 is labelled status-in-dev with this AC unchecked, so the blocker reads as done.
Downstream: #2281 (DigitalOcean), #2282 (Vultr), #2283 (Hostinger/Dokploy), #835 (GCP/Hetzner Packer). Epic #2332 names #2280 "the P1 gate; everything else depends on it" — this is the half of that gate which has not landed.
The contract (already fixed by three consumers)
| requirement | set by |
|---|---|
repos ghcr.io/abilityai/trinity-{backend,frontend,scheduler,mcp-server,agent-base} |
docker-compose.hosted.yml, five image: lines |
both a version tag and latest per image |
compose defaults ${TRINITY_IMAGE_TAG:-latest}; packer/digitalocean/trinity.pkr.hcl requires an explicit tag and rejects latest |
| anonymously pullable | start.sh:524 and packer/digitalocean/scripts/01-provision.sh:50 both docker pull with no docker login |
| linux/amd64 | DigitalOcean droplets |
GHCR packages default to private. Publishing alone does not clear the 401s — each package's visibility has to be set public.
Acceptance Criteria
-
.github/workflows/publish-images.ymlbuilds and pushes all five images on av*tag push tomain, plusworkflow_dispatchfor re-cuts.latestis never published fromdev. - Checkout is explicitly
submodules: false— these are public images and must not carry the private enterprise submodule. (build-without-submodule.ymlalready proves the backend builds without it; this workflow must choose it rather than inherit it.) - Each image is pushed with two tags: the release version (e.g.
v0.9.0) andlatest. - The backend image receives its six provenance build args (
VERSION,GIT_COMMIT,GIT_COMMIT_SUBJECT,GIT_COMMIT_TIMESTAMP,GIT_BRANCH,BUILD_DATE, Show Trinity version in header + git commit/branch detail in Settings #926) — verified by assertingGET /api/versionreturns real values, notunknown. - All five GHCR packages are public; an anonymous
docker pull(nodocker login) succeeds from a clean machine. -
TRINITY_IMAGE_TAG=<version> ./scripts/deploy/start.sh --hostedcomes up on a clean VM using only pulled images — no local build, andtrinity-agent-base:latestis present after the retag atstart.sh:533. - feat: prebuilt images + pull-only hosted compose + unattended cloud-init first boot — the gate for every one-click / marketplace channel #2280's AC1 is ticked, or feat: prebuilt images + pull-only hosted compose + unattended cloud-init first boot — the gate for every one-click / marketplace channel #2280 is closed if this was its last open item.
Technical Notes
- Build contexts differ per image: backend
docker/backend/Dockerfile; frontenddocker/frontend/Dockerfile.prod; schedulerdocker/scheduler/Dockerfile; mcp-serversrc/mcp-server/Dockerfilewith contextsrc/mcp-server; agent basedocker/base-image/Dockerfile. - The frontend image is droplet-agnostic —
src/frontend/src/api.jssetsbaseURL: '', so the SPA calls its own origin andVITE_API_URLis vestigial on this path. Nothing per-instance needs baking. - linux/amd64 only for v1. feat: prebuilt images + pull-only hosted compose + unattended cloud-init first boot — the gate for every one-click / marketplace channel #2280 lists arm64 as desirable, not required; it roughly doubles agent-base build time (Go, Node, Claude Code, plugin preinstall) for no marketplace target today. Track arm64 separately if Hetzner CAX or Umbrel is wanted.
TRINITY_PREINSTALL_PLUGINS=1makes network calls at build time (claude plugin marketplace add) and is deliberately non-fatal, so a registry flake ships an image with the platform plugin silently absent — the bug: plugin install always withheld —claude plugin install --yesuses a flag the CLI doesn't have (#1704/ent#411 delivery broken) #2305/bug: trinity-system cannot create ~/.claude/plugins — marketplace add fails EACCES, platform plugin withheld #2308 symptom, baked in and fleet-wide. Decide explicitly whether the publish build fails on that step rather than inheriting the local-build tolerance.- Precedent for a publish workflow with tag-or-dispatch triggering:
.github/workflows/publish-cli.yml. - Retention/cleanup for old tags is out of scope; GHCR is free for public packages.
Activity
obasilakis commentedon Aug 31, 2026
Closing — filed on a false premise.
.github/workflows/publish-images.ymlalready exists ondev(#2390 / #2280, 2026-08-27) withtests/unit/test_2280_publish_workflow_and_stop.pyas its reviewed spec. My evidence for 'no publish workflow exists' — an emptyls .github/workflows/and an emptygrep -rl ghcr.io— came from a local checkout ~40 commits behindorigin/dev. PR #2453 is closed for the same reason.The 401s I quoted are real but mean something different: the workflow has never run (
gh run list --workflow publish-images.yml→ zero runs), because the newest tag isv0.9.0and the workflow merged after it. Nothing needs building; a release cut fires it, and the one-time GHCR package-visibility flip is already handled by its ownVerify anonymous pullstep.#2280's AC1 is therefore accurate as written — unticked because unrun, not because unbuilt.