File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 3535 - name : Prepare platform-safe variable
3636 id : platform_vars
3737 run : |
38- echo "PLATFORM_PAIR=${{ matrix.platform }}" | tr '/' '-' >> $GITHUB_ENV
38+ PLATFORM_PAIR=$(echo "${{ matrix.platform }}" | tr '/' '-')
39+ echo "PLATFORM_PAIR=$PLATFORM_PAIR" >> $GITHUB_ENV
3940
4041 - name : Set image tag components
4142 id : vars
@@ -71,12 +72,12 @@ jobs:
7172 push : true
7273 cache-from : type=gha
7374 cache-to : type=gha,mode=max
74- outputs : type=image,name=${{ steps.vars.outputs.FULL_IMAGE }},push-by-digest=true
75+ outputs : type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true
7576
7677 - name : Export digest
7778 run : |
7879 mkdir -p /tmp/digests
79- echo "${{ steps.build.outputs.digest }}" > "/tmp/digests/${{ env.PLATFORM_PAIR }}.txt"
80+ echo "${{ env.REGISTRY_IMAGE }}@${{ steps.build.outputs.digest }}" > "/tmp/digests/${{ env.PLATFORM_PAIR }}.txt"
8081
8182 - name : Upload digest
8283 uses : actions/upload-artifact@v4
@@ -110,12 +111,13 @@ jobs:
110111 - name : Create manifest list and push
111112 working-directory : /tmp/digests
112113 run : |
114+ TAG=${{ needs.build.outputs.IMAGE_NAME }}
113115 DIGEST_ARGS=""
114116 for file in *.txt; do
115- digest =$(cat "$file")
116- DIGEST_ARGS+=" ${{ needs.build.outputs.IMAGE_NAME }}@$digest "
117+ ref =$(cat "$file")
118+ DIGEST_ARGS+=" $ref "
117119 done
118- docker buildx imagetools create -t ${{ needs.build.outputs.IMAGE_NAME }} $DIGEST_ARGS
120+ docker buildx imagetools create -t "$TAG" $DIGEST_ARGS
119121
120122 - name : Inspect final image
121123 run : |
You can’t perform that action at this time.
0 commit comments