Skip to content

Commit 0950e7f

Browse files
committed
fix(ci): use manifest-descriptor prefix for index-level annotations
Annotations without a prefix land on the per-platform image manifest, not on the OCI image index. GHCR reads the package description from the index level, so the description was silently ignored. The manifest-descriptor: prefix tells buildx to write annotations to the image index manifest entries instead.
1 parent 84822d7 commit 0950e7f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/docker-ci.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,13 @@ jobs:
160160
echo "EOF"
161161
} >> "$GITHUB_OUTPUT"
162162
163-
# Index-level annotations so GHCR picks up the description
163+
# Index-level annotations so GHCR picks up the description.
164+
# manifest-descriptor: targets the OCI image index; without
165+
# the prefix annotations only land on the per-platform manifest.
164166
{
165167
echo "annotations<<EOF"
166-
echo "org.opencontainers.image.title=chatmail-relay"
167-
echo "org.opencontainers.image.description=${DESC}"
168+
echo "manifest-descriptor:org.opencontainers.image.title=chatmail-relay"
169+
echo "manifest-descriptor:org.opencontainers.image.description=${DESC}"
168170
echo "EOF"
169171
} >> "$GITHUB_OUTPUT"
170172

0 commit comments

Comments
 (0)