fix(offsite): 服务器或白名单按摘要钉住的 felis/ 与 mirror/ 版本也进异地副本,恢复只按摘要推回不动安装器的 tag

This commit is contained in:
Lemon-miaow committed 2026-09-25 05:00:02 +08:00
1 parent 8fb3d298ae
commit 2779d8f5cf
8 files changed
+158 -20

No files matched your search

+8 -3
View File
@@ -1792,9 +1792,14 @@ What runs:
the right size is recorded without being sent again, so a run cut short
resumes. [GO-TESTED: `internal/offsite`]
- The same run copies the user images in the platform registry: every
repository outside `felis/` and `mirror/` (the installer pushes those again),
each manifest the registry's index lists and every layer it names, read
through the loopback hostPort. A layer shared by many images is stored once.
repository outside `felis/` and `mirror/`, each manifest the registry's index
lists and every layer it names, read through the loopback hostPort. A layer
shared by many images is stored once. The installer pushes `felis/` and
`mirror/` again on a new host, but at new digests, so from those the run
copies only the revisions a MinecraftServer or a whitelist entry pins by
digest (a server created from the platform's Paper image, for one), without
their tags; a restore puts them back by digest and leaves the installer's
tags alone.
When the set changed, a new version of the image list is written; versions
replaced more than 14 days ago are dropped together with the layers only
they named, so an image deleted by mistake stays restorable for two weeks