From 6e973be9adab0216b444c4880009e3f05a85b958 Mon Sep 17 00:00:00 2001 From: esammier <49458013+esammier@users.noreply.github.com> Date: Sun, 9 Nov 2025 13:00:08 +0000 Subject: [PATCH] Auto OCI image annotations with Docker metadata-action --- .github/workflows/ci.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1b3700c..23f40a0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -42,6 +42,12 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Extract Docker image metadata + id: metadata + uses: docker/metadata-action@v5 + with: + images: ${{ github.repository }} + - name: Build and push Docker image uses: docker/build-push-action@v5 with: @@ -56,3 +62,4 @@ jobs: ${{ github.repository }}:latest ghcr.io/${{ github.repository }}:${{ env.PACKAGE_VERSION }} ghcr.io/${{ github.repository }}:latest + annotations: ${{ steps.metadata.output.annotations }}