This repo uses the Jarvus develop→main Release-PR flow (the
JarvusInnovations/infra-components release-prepare / release-validate /
release-publish composite actions). Versioned releases are cut from a
changelog'd PR; merging it tags the release and publishes the container image.
feature branch ──▶ develop ──(push)──▶ "Release: vX.Y.Z" PR into main
│ (review changelog, adjust bump)
▼ (merge)
tag vX.Y.Z ──▶ GHCR image :vX.Y.Z + :latest
- Merge work into
develop. Feature branches PR intodevelop(CI runs ondevelopand on every PR). Only Release PRs ever targetmain— that's whatrelease-validateenforces: it fails any PR intomainwhose title isn'tRelease: vX.Y.Z, so a stray feature-PR-into-mainis caught. (The one exception is the very first bootstrap PR that introduces these workflows, which necessarily merges tomaindirectly and trips that check once.) - Push
develop.release-prepare.ymlopens (or updates) aRelease: vX.Y.ZPR intomainwith a bot-generated## Changelogcomment. The version is computed from the lastv*tag + the commits since. - Review the Release PR. Sort the changelog, confirm the semver bump
(edit the PR title to override the version if needed —
release-validate.ymlkeeps it well-formed). Use thejarvus-release-flowskill for the changelog + bump conventions. - Merge the Release PR.
release-publish.ymlcreates thevX.Y.Ztag and GitHub release. The tag push triggerscontainer-publish.yml, which builds and pushesghcr.io/codeforphilly/codeforphilly-ng:vX.Y.Zand:latest. - Deploy. In each cluster repo (
cfp-sandbox-clusterfirst, thencfp-live-cluster), bump.holo/sources/codeforphilly-ng.toml'sreftorefs/tags/vX.Y.Zandimages[].newTagincodeforphilly-ng/app/kustomization.yamlin one commit, merge tomain, then merge the bot's PR intodeploys/k8s-manifests. Details in deploy.md.
The API boots only when every sheet on the data branch it serves declares
exactly the contract versions the release publishes
(storage.md → Schema contracts).
The adoption on empty, fixture and legacy-import happened in the PR that
published the contract. published is adopted at release time, because sandbox
and production both serve it:
- Find the contract changes in the release:
git diff <previous tag> vX.Y.Z --stat -- contracts/. If there are none, skip this section. - In a clone of
codeforphilly-dataonpublished, for each new or changed contract rungitsheets contracts adopt https://raw.githubusercontent.com/CodeForPhilly/codeforphilly-ng/<sha>/contracts/codeforphilly.org/<sheet>/v<N>.jsonpinned to the same commitemptyadopted from (see its.gitsheets/contracts/sources.toml). Then set each changed sheet'simplementsline, and remove any contract version no sheet declares any more. Squash into one commit and rungitsheets contracts verify, which validates every record. Commit as a pseudonymous author (<you>@users.noreply.codeforphilly.org). - Push
published, then deploy the release to the sandbox and production back to back. Pods already running keep serving after the push (gitsheets doesn't re-check contract identity on reload), but a pod of the previous release that restarts between the push and its deploy fails its boot. - Confirm both pods are ready on
vX.Y.Z.
BOT_GITHUB_TOKENrepo (or org) secret — a PAT/app token withreposcope. Required byrelease-publish: a tag pushed with the defaultGITHUB_TOKENcannot triggercontainer-publish, so the image would never build.- GHCR package write for Actions — the first
container-publishrun creates the package; ensuregithub.com/CodeForPhilly/codeforphilly-ng→ Packages grants the repo's Actions write access (the workflow usespermissions: packages: write). - Branch protection on
main(recommended) — require a PR + green CI to merge, so releases only land via the Release PR.
There are no tags yet, so the first push to develop proposes v0.1.0. If
you want a different baseline, edit the Release PR title before merging.
- The manual
docker build --platform=linux/amd64 … :sandboxpath (sandbox-deploy.md) is an emergency escape hatch only; every deployed version goes throughcontainer-publishand a cluster-repo pin bump. - CI runners and cluster nodes are both amd64, so
container-publishneeds no--platformflag (that's only for local Apple-silicon builds).