Skip to content

Commit a35c9b6

Browse files
committed
fix(ci): use index: prefix for OCI index-level annotations
manifest-descriptor: writes annotations to the manifest entries inside the index (manifests[].annotations), not to the index object itself. GHCR reads the top-level index annotations.
1 parent 84822d7 commit a35c9b6

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/docker-ci.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,14 @@ jobs:
160160
echo "EOF"
161161
} >> "$GITHUB_OUTPUT"
162162
163-
# Index-level annotations so GHCR picks up the description
163+
# Annotations on the OCI image index so GHCR shows the description.
164+
# "index:" prefix = top-level index object annotations.
165+
# "manifest-descriptor:" = per-entry inside the index (not what GHCR reads).
166+
# No prefix = per-platform image manifest.
164167
{
165168
echo "annotations<<EOF"
166-
echo "org.opencontainers.image.title=chatmail-relay"
167-
echo "org.opencontainers.image.description=${DESC}"
169+
echo "index:org.opencontainers.image.title=chatmail-relay"
170+
echo "index:org.opencontainers.image.description=${DESC}"
168171
echo "EOF"
169172
} >> "$GITHUB_OUTPUT"
170173

0 commit comments

Comments
 (0)