Skip to content

Commit

Permalink
chore: add annotations to manifest (#201)
Browse files Browse the repository at this point in the history
* chore: add test annotation to manifest

* chore: correct annotation syntax

* chore: derive manifest labels from metadata action

* chore: correct syntax for GITHUB_OUTPUT

* chore: fixing shell issue

* chore: more shell fixing

* chore: more shell fun

* chore: more shell fun

* chore: more shell fun

* chore: satisfy linter

* chore: try to use derived image name
  • Loading branch information
rjaegers authored Nov 10, 2023
1 parent 96157b1 commit bfbb690
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ jobs:
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- run: |
set -Eeuo pipefail
ANNOTATIONS=$(echo '${{ steps.meta.outputs.labels }}' | sed 's/org.opencontainers.image./annotation-index.org.opencontainers.image./' | tr '\n' ',')
echo "annotations=${ANNOTATIONS::-1}" >> "$GITHUB_OUTPUT"
id: annotations
- uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
- uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
- uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
Expand All @@ -58,6 +63,7 @@ jobs:
push: ${{ github.event_name != 'merge_group' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,${{ steps.annotations.outputs.annotations }}
sbom: true
provenance: true
cache-from: type=gha
Expand Down

0 comments on commit bfbb690

Please sign in to comment.