3131 name : Build Deeploy Toolchain Image
3232 needs : [ prepare ]
3333 runs-on : ${{ matrix.runner }}
34+ outputs :
35+ digest-amd64 : ${{ steps.digest.outputs.digest-amd64 }}
36+ digest-arm64 : ${{ steps.digest.outputs.digest-arm64 }}
3437 strategy :
3538 fail-fast : false
3639 matrix :
@@ -83,15 +86,18 @@ jobs:
8386 OWNER : ' ${{ github.repository_owner }}'
8487
8588 - name : Build and push toolchain image
89+ id : build
8690 uses : docker/build-push-action@v6
8791 with :
8892 platforms : linux/${{ matrix.platform }}
8993 context : .
9094 file : Container/Dockerfile.toolchain
9195 push : true
92- tags : |
93- ghcr.io/${{ env.OWNER_LC }}/deeploy-toolchain:latest-${{ matrix.platform }}
94- ghcr.io/${{ env.OWNER_LC }}/deeploy-toolchain:${{ needs.prepare.outputs.docker_tag }}-${{ matrix.platform }}
96+ outputs : type=image,name=ghcr.io/${{ env.OWNER_LC }}/deeploy-toolchain,annotation-index=true,name-canonical=true,push=true
97+
98+ - name : Extract image digest
99+ id : digest
100+ run : echo "digest-${{ matrix.platform }}=${{ steps.build.outputs.digest }}" >> $GITHUB_OUTPUT
95101
96102 merge-toolchain-images :
97103 name : Merge Deeploy Toolchain Images
@@ -111,8 +117,13 @@ jobs:
111117 env :
112118 OWNER : ' ${{ github.repository_owner }}'
113119
114- - uses : Noelware/docker-manifest-action@v1
120+ - name : Merge Toolchain Images
121+ uses : Noelware/docker-manifest-action@v1
115122 with :
116- inputs : ghcr.io/${{ env.OWNER_LC }}/deeploy-toolchain:latest-amd64,ghcr.io/${{ env.OWNER_LC }}/deeploy-toolchain:latest-arm64
117- tags : ghcr.io/${{ env.OWNER_LC }}/deeploy-toolchain:latest,ghcr.io/${{ env.OWNER_LC }}/deeploy-toolchain:${{ needs.prepare.outputs.docker_tag }}
123+ inputs : |
124+ ghcr.io/${{ env.OWNER_LC }}/deeploy-toolchain@${{ needs.build-toolchain.outputs.digest-amd64 }},
125+ ghcr.io/${{ env.OWNER_LC }}/deeploy-toolchain@${{ needs.build-toolchain.outputs.digest-arm64 }}
126+ tags : |
127+ ghcr.io/${{ env.OWNER_LC }}/deeploy-toolchain:latest,
128+ ghcr.io/${{ env.OWNER_LC }}/deeploy-toolchain:${{ needs.prepare.outputs.docker_tag }}
118129 push : true
0 commit comments