ADR-0248: Images are published as a nightly channel and a stable channel
- Status: accepted; amends ADR-0229 (
:devon every push,:stablebeside:latest, the build cache as a tag of the image) - Date: 2026-12-06
- Deciders: Mahdi Amirabdollahi
Context
ADR-0229 left Docker Hub with five names in one tag list: :dev, rebuilt on every merge that changed the image; :latest and :stable, two names for one digest; the month and the version; and :buildcache, a BuildKit cache manifest that nobody can run but that sits in the list a person reads to choose an image. dev reads as a developer's build rather than a published channel, two names for the stable release make a reader ask how they differ, and a 45-minute multi-arch build on every merge spends runner time on images that a busy day replaces within the hour.
Projects that publish a channel between releases mostly call it nightly (or edge) and build it on a schedule; the stable channel is latest with immutable version tags; build caches live outside the image repository.
Decision
- Nightly.
nightly.ymlbuildssudoit1/rahdar:nightlyat 02:17 UTC frommain, only when what the image is built from (src/,web/,clients/,pom.xml, the Maven wrapper,Dockerfile,.dockerignore) changed since the commit of the last nightly that succeeded. A maintainer can run it by hand, and withforceit builds regardless. The image's version isnightly-<YYYYMMDD>-<sha7>, which names the night and the commit and is not a CalVer, so a plugin's version range is not checked against it, as it was not fordev. It is attested bynightly.yml.ci.ymlno longer publishes an image. - Stable. A release (
release.yml, by hand) pushes:<YYYY.MM.N>(immutable),:<YYYY.MM>(the month's newest) and:latest.:stableis no longer published. The GitHub Release and the tag annotation are titledRahdar <version>. - Cache. The registry build cache moves to its own public repository,
sudoit1/rahdar-cache:buildcache, written only bynightly.ymland read by pull-request builds and releases. A failed cache write does not fail the nightly. - Defaults. The operator compose files and
.env.exampledefault to:latest; the QA and load stacks that need what is onmaindefault to:nightly.
Consequences
:dev,:stableand:buildcacheare no longer updated. They stay on Docker Hub, frozen, until a maintainer deletes them there; anyone still pulling:devgets an old image, so the release notes name the move.- The nightly can lag
mainby up to a day. A change wanted sooner is released, or built from source. - Main's merges no longer queue a 45-minute multi-arch build each.
- Someone verifying the nightly passes
--signer-workflowfornightly.yml; older:devimages were signed byci.yml. - The first nightly creates the cache repository on push; until it exists, pull-request builds start cold.
Alternatives considered
- Keep building on every merge and only rename
:devto:edge. Honest about the cadence, but it keeps the runner cost and the image churn, andnightlyis the name operators look for. - Keep
:stableas an alias. Nothing needs backward compatibility before the stable release, and two names for one image is the question this change removes. - Move the cache to the GitHub Actions cache. It is evicted at 10 GB per repository, which the multi-arch
mode=maxcache outgrows, so builds would start cold more often. - Publish dated nightlies (
:nightly-20261206). One more tag every night in the list a person reads; a nightly is pinned by digest.