ci(release): roll every release onto the uom site #52
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/deploy-uom"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What & why
The website rolls the uom site onto every new core image (the
deployjob inbuild-images.yml, onuom-deploy-runner). This does the same for the uo module: after a release is published, adeploy-uomjob rolls the uom site onto it.It does not unpack anything itself. Core already resolves
MODULES=uo@<version>=<manifest URL>atevery start (fetch, verify the sha256, unpack). The job only moves that line and restarts:
coreApiagainst core's
MODULE_API_VERSION, using core's ownsemver.js. If they don't match it warnsand changes nothing. (decided: skip + warn)
.envedited in place. It rewrites theuo@…entry of theMODULESline and keeps anyother entries. If there is no line it appends one: uo is admin-installed on that site today, so
the first deploy appends. The file keeps its owner and mode. It refuses to run if
MODULESappears twice, or if it comes from compose
environment:(which would win over.env). A writethat doesn't land intact puts the original back. The log only ever shows
id@version.(decided: edit
.envin place)registered module "uo" v<version>. IfLOG_LEVELiswarnorerrorit checks the version on the volume instead.version that was running, recreates again, and fails the job. Easy to drop if you'd rather it
just fail.
Redeploy button: Run workflow with
redeploy = truepublishes nothing and deploys the newesttag. Use it after a skipped deploy. (decided: every release + manual)
The site directory defaults to
/home/perry/website; the Actions variableUOM_SITE_DIRoverridesit. Nothing on the runner itself changes.
This commit is
ci:, so merging it cuts no release and deploys nothing. Nothing releasable haslanded since v1.4.2. The first live run is the next
feat/fixrelease, or Redeploy, which rollsout v1.4.2.
Docs: RunicGateway/docs PR (modules/uo/README.md), opened alongside.
How it was tested
needsandvarsdefault checked.dockermocked, but usingthe real v1.4.1 manifest and core's real
semver.js/version.js. 12/12 cases:.envwith no MODULES linerust@entry# commenton the lineLOG_LEVEL=warnenvironment:override (refused before editing)deploy=true,release=false) and a normal push.quiet log level, write verification, mawk-safe awk, override pre-check, inline comments, narrower
log dump, a misleading message.
uom-deploy-runner. I can't reach that host. Unknowns: that therunner user can write
.env, and thatcmp/awk/pasteexist there.Checklist
AI-assisted contributions (required)
Claude Code (Claude Opus 5.5). I have reviewed and understandevery change, and take responsibility for it. AI-authored commits are
marked with a
Co-Authored-By/Assisted-Bytrailer.License
(GNU GPL v3.0 or later), and I have the right to contribute it.
🤖 Generated with Claude Code
https://claude.ai/code/session_014HJEmd5sBSpNXicS4gmT1t