Files
magpie/.github
yetone deabe0903e docker: a stable tag that follows the desktop app's Stable channel
jorbenzhu on Discord (#feedback, 10-31): "建议 docker镜像 也提供 stable 类tag,
与桌面版保持同步的稳定版发布". The desktop app's Stable channel is chosen in
site/worker.js (stableOf: once a week the newest release out three days,
or an urgent one at once) and served at /api/latest?channel=stable. The
image had latest, a version's tags, 0.1, 0 and edge, nothing for Stable.

New .github/workflows/docker-stable.yml reads that feed, hourly and after
each Docker run, and points ghcr.io/yetone/magpie:stable at the image
docker.yml already built for that version (buildx imagetools create, no
build). It decides nothing itself, so the tag can't drift from the
desktop's pick. latest, edge and the version tags aren't touched. A feed
it can't read (or one naming no version) leaves the tag where it was,
with a warning; no image for the Stable version is a red run. Images are
compared by their platform manifests, so a run with nothing to do pushes
nothing. Docker docs (en, zh, ja) list the tag; worker.js's Stable
comment points to the workflow.

Run:
- actionlint on the workflow: ok.
- The step's script locally against the real feed and ghcr (create
  swapped for an echo): feed says 0.1.1327, :stable missing -> would
  create stable from 0.1.1327; feed 404 -> warning, exit 0; stable
  already the same manifests -> "already", exit 0; no image for the
  version -> exit 4 (red).
- node --test site/*.test.mjs on mote: 49 pass.

Not tried:
- the workflow on GitHub itself: it first runs on its schedule or after
  the next Docker run; I didn't dispatch it by hand. Its first run
  creates :stable.
- whether buildx imagetools create with one source keeps the index's
  digest (the compare is by platform manifests, so either way is fine).
2026-10-31 11:51:01 +08:00
..