From ceb544833a278741498de0d000091befd0f9534c Mon Sep 17 00:00:00 2001 From: Sebastian Kunze Date: Tue, 29 Nov 2022 09:11:53 +0100 Subject: [PATCH] Add OpenContainers annotations to published container images (#1021) --- .github/workflows/container-image.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/container-image.yml b/.github/workflows/container-image.yml index 66f1ae9a..04d40ad4 100644 --- a/.github/workflows/container-image.yml +++ b/.github/workflows/container-image.yml @@ -59,3 +59,10 @@ jobs: tags: | ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.date.outputs.date }} + labels: | + org.opencontainers.image.licenses='Apache-2.0' + org.opencontainers.image.revision='${{ github.sha }}' + org.opencontainers.image.source='${{ github.server_url }}/${{ github.repository }}' + org.opencontainers.image.title='${{ inputs.image_name }}' + org.opencontainers.image.vendor='Google LLC' + org.opencontainers.image.version='${{ steps.date.outputs.date }}'