Add annotations to Docker manifests

This commit is contained in:
DarthSim
2024-10-29 21:32:28 +03:00
parent 5b8c8f2516
commit 3be311855b

View File

@@ -103,8 +103,14 @@ jobs:
- name: Push manifests
run: |
for tag in ${{ join(fromJSON(steps.meta.outputs.json).tags, ' ') }}
ANNOTATIONS=""
for annotation in "${{ join(fromJSON(steps.meta.outputs.json).annotations, '" "') }}"
do
docker buildx imagetools create -t $tag ${tag}-amd64 ${tag}-arm64
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 ${ANNOTATIONS}
done