feat(ci): mirror released images to the apoci registry #9

Merged
Exikle merged 1 commit from feat/mirror-to-apoci into main 2026-08-02 03:25:15 +00:00
Owner

Pushes released images to registry.dcunha.io/exikle/<app> in addition to git.dcunha.io/exikle/<app>.

Runs after the multi-arch index is assembled, so the build path is unchanged. Only releases mirror — PR builds still stay local and push nothing.

Why regctl and not a second imagetools create: imagetools only writes manifests that reference blobs already present in the target registry, so aiming it at apoci would publish an index whose layers don't exist there. regctl image copy transfers the blobs and the whole index.

apoci namespaces repositories by account domain internally, so registry.dcunha.io/exikle/<app> lands as dcunha.io/exikle/<app> in its catalog — matching how the fingerjoin chart is published.

Verified by hand before opening this: copying forgejo-runner:12.10.2 produced dcunha.io/exikle/forgejo-runner in the catalog with the OCI index and its linux/amd64 manifest intact. REGISTRY_TOKEN is set on the repo.

Pushes released images to `registry.dcunha.io/exikle/<app>` in addition to `git.dcunha.io/exikle/<app>`. Runs after the multi-arch index is assembled, so the build path is unchanged. Only releases mirror — PR builds still stay local and push nothing. **Why regctl and not a second `imagetools create`:** imagetools only writes manifests that reference blobs already present in the target registry, so aiming it at apoci would publish an index whose layers don't exist there. `regctl image copy` transfers the blobs and the whole index. apoci namespaces repositories by account domain internally, so `registry.dcunha.io/exikle/<app>` lands as `dcunha.io/exikle/<app>` in its catalog — matching how the fingerjoin chart is published. Verified by hand before opening this: copying `forgejo-runner:12.10.2` produced `dcunha.io/exikle/forgejo-runner` in the catalog with the OCI index and its linux/amd64 manifest intact. `REGISTRY_TOKEN` is set on the repo.
Released tags are copied to registry.dcunha.io/exikle/<app> after the
multi-arch index is assembled. Only releases mirror; pull request builds
still stay local.

Uses regctl rather than a second imagetools create: imagetools only
writes manifests referencing blobs already present in the target, so
pointing it at a second registry would publish a dangling index. regctl
copies the blobs and the full index.

Verified by copying forgejo-runner:12.10.2 by hand - it lands in apoci's
catalog as dcunha.io/exikle/forgejo-runner with the OCI index and its
linux/amd64 manifest intact.
Exikle merged commit 657134407d into main 2026-08-02 03:25:15 +00:00
Exikle deleted branch feat/mirror-to-apoci 2026-08-02 03:25:15 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Exikle/containers!9
No description provided.