Skip to content

Commit

Permalink
Add annotations to Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Dec 4, 2023
1 parent 404718a commit 1b6667d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{version}},suffix=-alpine${{ steps.alpine.outputs.version }}
env:
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index

- name: Build Docker image
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
Expand All @@ -66,6 +68,7 @@ jobs:
load: ${{ github.event_name == 'pull_request' }}
push: ${{ github.event_name != 'pull_request' }}
platforms: ${{ github.event_name != 'pull_request' && env.platforms || '' }}
annotations: ${{ steps.meta.outputs.annotations }}
pull: true
sbom: ${{ github.event_name != 'pull_request' }}
provenance: ${{ github.event_name != 'pull_request' }}
Expand Down

0 comments on commit 1b6667d

Please sign in to comment.