From b2173b708d57bdb4bfe6ff6dccede6efb3a48177 Mon Sep 17 00:00:00 2001 From: Edoardo Baldi Date: Mon, 5 May 2025 18:54:12 +0200 Subject: [PATCH 1/2] Add annotations for multi-arch images --- .github/workflows/docker-build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 5762f13b..809428cc 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -48,6 +48,9 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + # Tags and annotations for the image + # - Tags: image names in the registry + # - Annotations: multi-architecture manifest metadata - name: Docker meta id: meta uses: docker/metadata-action@v5 @@ -58,7 +61,13 @@ jobs: type=ref,event=pr type=ref,event=tag type=sha,format=short + annotations: | + org.opencontainers.image.description=A containerized Python tutorial environment with Jupyter Lab. + org.opencontainers.image.source=https://github.com/${{ github.repository }} + org.opencontainers.image.authors=Empa Scientific IT + org.opencontainers.image.licenses=MIT + # Build and push the multi-architecture image - name: Build and push uses: docker/build-push-action@v6 with: @@ -67,3 +76,4 @@ jobs: push: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + annotations: ${{ steps.meta.outputs.annotations }} From 8419e4ea75e276125604b961b215359622bd1201 Mon Sep 17 00:00:00 2001 From: Edoardo Baldi Date: Mon, 5 May 2025 18:55:08 +0200 Subject: [PATCH 2/2] Remove comment --- .github/workflows/docker-build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 809428cc..e97506ea 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -67,7 +67,6 @@ jobs: org.opencontainers.image.authors=Empa Scientific IT org.opencontainers.image.licenses=MIT - # Build and push the multi-architecture image - name: Build and push uses: docker/build-push-action@v6 with: