docker: GitHub doesn't show labels due to multi-arch image -> add annotation level index
This commit is contained in:
parent
ada40d05ec
commit
5d48716ef1
2 changed files with 11 additions and 9 deletions
4
.github/workflows/docker.yml
vendored
4
.github/workflows/docker.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue