@@ -119,11 +119,7 @@ jobs:
119119 file : ./Dockerfile
120120 platforms : linux/amd64
121121 push : true
122- tags : |
123- thatsnomoon/highlights:latest
124- thatsnomoon/highlights:${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}
125- thatsnomoon/highlights:${{ env.MAJOR }}.${{ env.MINOR }}
126- thatsnomoon/highlights:${{ env.MAJOR }}
122+ tags : thatsnomoon/highlights-amd64:${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}
127123 cache-from : type=registry,ref=thatsnomoon/highlights:buildcache
128124 cache-to : type=registry,ref=thatsnomoon/highlights:buildcache,mode=max
129125
@@ -138,10 +134,33 @@ jobs:
138134 MUSLHOST=x86_64-linux-musl
139135 MUSLTARGET=aarch64-linux-musl
140136 push : true
141- tags : |
142- thatsnomoon/highlights:latest
143- thatsnomoon/highlights:${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}
144- thatsnomoon/highlights:${{ env.MAJOR }}.${{ env.MINOR }}
145- thatsnomoon/highlights:${{ env.MAJOR }}
137+ tags : thatsnomoon/highlights-arm64:${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}
146138 cache-from : type=registry,ref=thatsnomoon/highlights:buildcache
147139 cache-to : type=registry,ref=thatsnomoon/highlights:buildcache,mode=max
140+
141+ - name : Create and push multi-arch manifest
142+ run : " \
143+ docker manifest create thatsnomoon/highlights:latest \
144+ thatsnomoon/highlights-amd64:${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }} \
145+ thatsnomoon/highlights-arm64:${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}\n \
146+ docker manifest create \
147+ thatsnomoon/highlights:${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }} \
148+ thatsnomoon/highlights-amd64:${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }} \
149+ thatsnomoon/highlights-arm64:${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}\n \
150+ docker manifest create \
151+ thatsnomoon/highlights:${{ env.MAJOR }}.${{ env.MINOR }} \
152+ thatsnomoon/highlights-amd64:${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }} \
153+ thatsnomoon/highlights-arm64:${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}\n \
154+ docker manifest create \
155+ thatsnomoon/highlights:${{ env.MAJOR }} \
156+ thatsnomoon/highlights-amd64:${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }} \
157+ thatsnomoon/highlights-arm64:${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}\n \
158+
159+
160+ docker manifest push thatsnomoon/highlights:latest\n \
161+ docker manifest push \
162+ thatsnomoon/highlights:${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}\n \
163+ docker manifest push \
164+ thatsnomoon/highlights:${{ env.MAJOR }}.${{ env.MINOR }}\n \
165+ docker manifest push \
166+ thatsnomoon/highlights:${{ env.MAJOR }}"
0 commit comments