@@ -2,7 +2,7 @@ name: linux
22
33on :
44 push :
5- branches : [main]
5+ branches : [ main ]
66 pull_request :
77
88concurrency :
5858 strategy :
5959 fail-fast : false
6060 matrix : ${{ fromJson(needs.generate-matrix.outputs.docker-build-matrix) }}
61- name : image / ${{ matrix.name }}
61+ name : image / ${{ matrix.arch }} / ${{ matrix. name }}
6262 runs-on : ${{ matrix.runner }}
6363 permissions :
6464 packages : write
@@ -100,23 +100,23 @@ jobs:
100100 # Cache from the default branch of the canonical repo so forks can have cache hits.
101101 # Ignore errors on cache writes so CI of forks works without a valid GHCR config.
102102 cache-from : |
103- type=registry,ref=ghcr.io/${{ env.REPO_NAME }}:${{ matrix.name }}-${{ env.GIT_REF_NAME }}
104- type=registry,ref=ghcr.io/${{ env.REPO_NAME }}:${{ matrix.name }}-main
105- type=registry,ref=ghcr.io/astral-sh/python-build-standalone:${{ matrix.name }}-main
103+ type=registry,ref=ghcr.io/${{ env.REPO_NAME }}:${{ matrix.name }}-linux_${{ matrix.arch }}- ${{ env.GIT_REF_NAME }}
104+ type=registry,ref=ghcr.io/${{ env.REPO_NAME }}:${{ matrix.name }}-linux_${{ matrix.arch }}- main
105+ type=registry,ref=ghcr.io/astral-sh/python-build-standalone:${{ matrix.name }}-linux_${{ matrix.arch }}- main
106106 cache-to : |
107- type=registry,ref=ghcr.io/${{ env.REPO_NAME }}:${{ matrix.name }}-${{ env.GIT_REF_NAME }},ignore-error=true
107+ type=registry,ref=ghcr.io/${{ env.REPO_NAME }}:${{ matrix.name }}-linux_${{ matrix.arch }}- ${{ env.GIT_REF_NAME }},ignore-error=true
108108 outputs : |
109- type=docker,dest=build/image-${{ matrix.name }}.tar
109+ type=docker,dest=build/image-${{ matrix.name }}.linux_${{ matrix.arch }}. tar
110110
111111 - name : Compress Image
112112 run : |
113- echo ${{ steps.build-image.outputs.imageid }} > build/image-${{ matrix.name }}
113+ echo ${{ steps.build-image.outputs.imageid }} > build/image-${{ matrix.name }}.linux_${{ matrix.arch }}
114114 zstd -v -T0 -6 --rm build/image-*.tar
115115
116116 - name : Upload Docker Image
117117 uses : actions/upload-artifact@v4
118118 with :
119- name : image-${{ matrix.name }}
119+ name : image-${{ matrix.name }}-linux_${{ matrix.arch }}
120120 path : build/image-*
121121
122122 generate-matrix :
0 commit comments