Skip to content

ADR-0248: Images are published as a nightly channel and a stable channel ​

  • Status: accepted; amends ADR-0229 (:dev on every push, :stable beside :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.yml builds sudoit1/rahdar:nightly at 02:17 UTC from main, 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 with force it builds regardless. The image's version is nightly-<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 for dev. It is attested by nightly.yml. ci.yml no longer publishes an image.
  • Stable. A release (release.yml, by hand) pushes :<YYYY.MM.N> (immutable), :<YYYY.MM> (the month's newest) and :latest. :stable is no longer published. The GitHub Release and the tag annotation are titled Rahdar <version>.
  • Cache. The registry build cache moves to its own public repository, sudoit1/rahdar-cache:buildcache, written only by nightly.yml and read by pull-request builds and releases. A failed cache write does not fail the nightly.
  • Defaults. The operator compose files and .env.example default to :latest; the QA and load stacks that need what is on main default to :nightly.

Consequences ​

  • :dev, :stable and :buildcache are no longer updated. They stay on Docker Hub, frozen, until a maintainer deletes them there; anyone still pulling :dev gets an old image, so the release notes name the move.
  • The nightly can lag main by 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-workflow for nightly.yml; older :dev images were signed by ci.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 :dev to :edge. Honest about the cadence, but it keeps the runner cost and the image churn, and nightly is the name operators look for.
  • Keep :stable as 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=max cache 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.

Apache-2.0. Apache Kafka, Apache ActiveMQ and Apache ActiveMQ Artemis are trademarks of the Apache Software Foundation. RabbitMQ is a trademark of its owner. Rahdar is an independent project, not produced by, endorsed by, or affiliated with the ASF or the owner of RabbitMQ.