Re-add DOCKER_METADATA_ANNOTATIONS_LEVELS to narrow annotations to the index

`docker buildx imagetools create --annotation manifest:KEY=VALUE` errors
out with "manifest annotations are not supported yet". metadata-action
defaults to emitting `manifest:` prefixed entries, so without an explicit
`DOCKER_METADATA_ANNOTATIONS_LEVELS: index` the finalize step blows up
the first time it sees a non-empty annotations list.
This commit is contained in:
Quentin Gliech
2026-05-20 15:22:56 +02:00
parent 63deb0b1fd
commit 7834229784
+5
View File
@@ -28,6 +28,11 @@ env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
BUILDCACHE: ghcr.io/element-hq/matrix-authentication-service/buildcache
# metadata-action defaults to `manifest`, which `docker buildx imagetools
# create --annotation` refuses with "manifest annotations are not supported
# yet". We only want annotations on the manifest list anyway, so narrow it
# to `index`.
DOCKER_METADATA_ANNOTATIONS_LEVELS: index
jobs:
compute-version: