Bläddra i källkod

Add annotations to Docker manifests

DarthSim 9 månader sedan
förälder
incheckning
3be311855b
1 ändrade filer med 7 tillägg och 1 borttagningar
  1. 7 1
      .github/workflows/build.yml

+ 7 - 1
.github/workflows/build.yml

@@ -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