Skip to main content

Deploying the platform

Since 2026-10-07 every platform image in prod has been built on the build box (192.168.100.98) because the hosted GitHub runners kill the test job during compilation. Until 2026-10-12 those builds ran with no test or clippy gate and the six platform tags drifted across five commits.

nexus-platform/scripts/ship.sh is now the one way to ship:

scripts/ship.sh [<commit>=HEAD] [--no-deploy] [--images "nexus-worker nexus-core"]
  1. Exports exactly that commit (git archive) to the box; the working tree is never shipped.
  2. On the box, scripts/box-build.sh runs the workflow's gate (cargo test --workspace --exclude nexus-mob-host and clippy with -D warnings over the money crates), then builds and pushes nexus-core, nexus-worker, nexus-telegram, nexus-mob-host and nexus-oracle under sha-<first 12 of the sha>. A failed gate ships nothing. SKIP_GATE=1 exists for emergencies and must be named in the gitops commit.
  3. Bumps core, worker, telegram, mobHost, assistantHost and oracle in nexus-gitops/environments/prod/values.yaml to the same tag in one commit and pushes it; Argo rolls the pods.

The signer (nexus-solana), the UI and the docs still build on GitHub and bump their own tags; [skip ci] on their commits means no image and no bump. The mob-host image carries its own copy of the decision contract, so any contract change must ship host and worker together, which lockstep guarantees.

A rule or goal change needs no deploy: the registry is read at every dispatch and sweep.