Auto OCI image annotations with Docker metadata-action

This commit is contained in:
esammier
2025-11-09 13:00:08 +00:00
parent 241072d089
commit 6e973be9ad
+7
View File
@@ -42,6 +42,12 @@ jobs:
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 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 - name: Build and push Docker image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
@@ -56,3 +62,4 @@ jobs:
${{ github.repository }}:latest ${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ env.PACKAGE_VERSION }} ghcr.io/${{ github.repository }}:${{ env.PACKAGE_VERSION }}
ghcr.io/${{ github.repository }}:latest ghcr.io/${{ github.repository }}:latest
annotations: ${{ steps.metadata.output.annotations }}