Skip to content

Commit

Permalink
Add annotations to Docker manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthSim committed Oct 29, 2024
1 parent 5b8c8f2 commit 3be3118
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,14 @@ jobs:

- name: Push manifests
run: |
ANNOTATIONS=""
for annotation in "${{ join(fromJSON(steps.meta.outputs.json).annotations, '" "') }}"
do
ANNOTATIONS="$ANNOTATIONS --annotation '$annotation'";
done
for tag in ${{ join(fromJSON(steps.meta.outputs.json).tags, ' ') }}
do
docker buildx imagetools create -t $tag ${tag}-amd64 ${tag}-arm64
docker buildx imagetools create -t $tag ${tag}-amd64 ${tag}-arm64 ${ANNOTATIONS}
done

0 comments on commit 3be3118

Please sign in to comment.