docker: GitHub doesn't show labels due to multi-arch image -> add annotation level index

This commit is contained in:
Ralf Vogler 2025-05-22 23:49:09 +02:00
parent ada40d05ec
commit 5d48716ef1
2 changed files with 11 additions and 9 deletions

View file

@ -48,6 +48,10 @@ jobs:
type=raw,value=latest,enable={{is_default_branch}}
labels: |
org.opencontainers.image.created={{commit_date 'YYYY-MM-DDTHH:mm:ss.SSS[Z]'}}
env:
# otherwise labels are not shown on GitHub due to multi-arch image: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#adding-a-description-to-multi-arch-images
# https://github.com/docker/metadata-action#annotations
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
-
name: Login to Docker Hub
uses: docker/login-action@v3