chadtmiller.com/monolith
An atproto PDS
0
0
Releases publish the image and the binary, from change files
Merged Approved
This adds releases. Change files and knope, with release-pull.yml keeping a Release <version> pull open. release.yml publishes the image and the binary and tags the commit. .knotless/image.sh builds the OCI layout without a container engine. The Dockerfile's user, the docs, AGENTS.md and review.md are updated to match. I found nothing that must change before it merges.
- Stale-trigger risk in
release.yml. Its push trigger is "main,Cargo.tomltouched", and the version it publishes is whateverCargo.tomlsays. 0.1.0 was never published. So if any pull lands on main beforeRelease 0.2.0and editsCargo.toml, for example a dependency bump, the workflow publishes 0.1.0 from that commit with empty notes and tags itv0.1.0. QueueingRelease 0.2.0soon after this lands avoids it. Alternatively, skip the publish when the version has no CHANGELOG.md section. - Spec and docs. Nothing here changes server behaviour, so no
spec/change is needed. The docs say what is built, as the repository asks. - Harness and server code. The harness and the crates are untouched.
image.shand the Dockerfile./etc/shadowand/etc/gshadowget nopdsentry, though the Dockerfile'suseraddadds one. That doesn't matter for a non-login service user. The comment in the Dockerfile pointing atimage.shcovers the other drift.- What I could not check.
knotless release publish --ociand therelease listoutput format thatcut -f2relies on are first exercised when the release pull lands, as the body already says.
All checks have passed
3 passed, 2 skipped
Merged as a4fabf8
Monolith gets releases: change files, a
Release <version>pull kept open by knope, and on landing the image and the binary published and the commit tagged. The guides already promised both, and the registry had no tags. It also points the README and the contributing guide at the documentation's public site, now that the repository is public.Claude Opus 5.5 · high
What changes
Releases.
knope.toml,.changeset/andCHANGELOG.md, as knotless has them.release-pull.yml, daily when main has change files, runsknope releaseon main's tip and keeps oneRelease <version>pull open onrelease/next; queueing it is the release.release.yml, once a version lands and the gates pass at it, publishes the image as the packagemonolith(knotless.dev/chadtmiller.com/monolith:<version>) andpds-<version>-x86_64-linux.tar.gzwith its.sha256as the packagepds, each with the version's changelog, then tagsv<version>. Both run onrunner.knotless.dev, withRELEASE_PASSWORDsealed to it for pushes to main alone.The image without a container engine. The runner's jobs have none, so
.knotless/image.shmakes an OCI layout from the built binary: the Dockerfile's last stage ondebian:trixie-slimfor linux/amd64, resolved when it runs, one layer more holdingpds,/dataand the user, and the Dockerfile's user, environment, volume, port, entry point and command. Its labels and annotations name the version, the commit and the base by digest. The layer's files and dates are the commit's time, so the same binary on the same base makes the same image.The Dockerfile. Its user's group is now 10001, as the released image's is, where
useradd --systemgave a system gid.Docs.
contributing.md, "Releases": change files, the two workflows and the upgrade data written after a tag.deploying.mdandgetting-started.md: the image's tags, labels and user; examples no longer name 0.1.0, never published.AGENTS.mdand.knotless/review.md: a change those who run or call the server see adds a change file. The first change file is this one's: the next release is 0.2.0.Why
/xrpc/_healthanswers the version as the reference does (spec/OPERATIONS.md), and the reference's moves with its releases (grain's answers0.4.5027); Monolith's has been 0.1.0 since the start.getting-started.mdanddeploying.mdnamed an image and a binary that were never published (/v2/chadtmiller.com/monolith/tags/listanswers no tags). The staged server on the grain box builds from source beside production on every deploy; with releases it pulls a version.How it was checked
.knotless/image.shin a linux/amd64 Debian container, given thepdsbinary of the image deployed on the grain box: the layout built twice gave the same manifest. Pushed to a local registry withcraneand pulled with Docker, its config has userpds, entry pointpds, commandserve, volume/data, port 2583, the threePDS_*variables and the labels; run, it answered_health, ran as uid and gid 10001 and wrote its data directory in/data.release.ymlandrelease-pull.ymlasked for on this branch: the dry runs, building and printing, publishing and pushing nothing.Shortcomings
Release 0.2.0pull lands:knotless release publish --ociis exercised there, not here.harness/upgrade/is still written again by hand after a tag.Review
.knotless/image.shagainst the Dockerfile's last stage: they must stay alike.