@@ -2,7 +2,7 @@ name: linux
2
2
3
3
on :
4
4
push :
5
- branches : [main]
5
+ branches : [ main ]
6
6
pull_request :
7
7
8
8
concurrency :
58
58
strategy :
59
59
fail-fast : false
60
60
matrix : ${{ fromJson(needs.generate-matrix.outputs.docker-build-matrix) }}
61
- name : image / ${{ matrix.name }}
61
+ name : image / ${{ matrix.arch }} / ${{ matrix. name }}
62
62
runs-on : ${{ matrix.runner }}
63
63
permissions :
64
64
packages : write
@@ -100,23 +100,23 @@ jobs:
100
100
# Cache from the default branch of the canonical repo so forks can have cache hits.
101
101
# Ignore errors on cache writes so CI of forks works without a valid GHCR config.
102
102
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
106
106
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
108
108
outputs : |
109
- type=docker,dest=build/image-${{ matrix.name }}.tar
109
+ type=docker,dest=build/image-${{ matrix.name }}.linux_${{ matrix.arch }}. tar
110
110
111
111
- name : Compress Image
112
112
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 }}
114
114
zstd -v -T0 -6 --rm build/image-*.tar
115
115
116
116
- name : Upload Docker Image
117
117
uses : actions/upload-artifact@v4
118
118
with :
119
- name : image-${{ matrix.name }}
119
+ name : image-${{ matrix.name }}-linux_${{ matrix.arch }}
120
120
path : build/image-*
121
121
122
122
generate-matrix :
0 commit comments