Skip to content

Commit b2173b7

Browse files
committed
Add annotations for multi-arch images
1 parent b14c079 commit b2173b7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/docker-build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ jobs:
4848
username: ${{ github.actor }}
4949
password: ${{ secrets.GITHUB_TOKEN }}
5050

51+
# Tags and annotations for the image
52+
# - Tags: image names in the registry
53+
# - Annotations: multi-architecture manifest metadata
5154
- name: Docker meta
5255
id: meta
5356
uses: docker/metadata-action@v5
@@ -58,7 +61,13 @@ jobs:
5861
type=ref,event=pr
5962
type=ref,event=tag
6063
type=sha,format=short
64+
annotations: |
65+
org.opencontainers.image.description=A containerized Python tutorial environment with Jupyter Lab.
66+
org.opencontainers.image.source=https://github.com/${{ github.repository }}
67+
org.opencontainers.image.authors=Empa Scientific IT <scientificit@empa.ch>
68+
org.opencontainers.image.licenses=MIT
6169
70+
# Build and push the multi-architecture image
6271
- name: Build and push
6372
uses: docker/build-push-action@v6
6473
with:
@@ -67,3 +76,4 @@ jobs:
6776
push: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
6877
tags: ${{ steps.meta.outputs.tags }}
6978
labels: ${{ steps.meta.outputs.labels }}
79+
annotations: ${{ steps.meta.outputs.annotations }}

0 commit comments

Comments
 (0)