Skip to content

Commit

Permalink
add annotations to container image
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdbd committed Oct 10, 2024
1 parent 4383d4c commit 4a1912e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ jobs:
uses: docker/[email protected]
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
annotations: |
annotation[linux/amd64].org.opencontainers.image.revision=${{ github.sha }}
annotation.org.opencontainers.image.revision=${{ github.sha }}
fosdem-dl:annotation.org.opencontainers.image.revision=${{ github.sha }}
# I don't know how to tell docker-metadata-action to extract the
# license, so I set it here explicitly.
# https://spdx.github.io/spdx-spec/v2.3/SPDX-license-expressions/
Expand All @@ -205,8 +209,9 @@ jobs:
BB_VERSION=1.4.192
CREATED_DATE=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
JSOUP_POD_VERSION=0.4.0
tags: ${{ steps.meta.outputs.tags }}
annotations: ${{ steps.meta.outputs.annotations }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}

# https://github.com/marketplace/actions/attest-build-provenance
- name: Generate artifact attestation
Expand Down

0 comments on commit 4a1912e

Please sign in to comment.