@@ -187,7 +187,7 @@ jobs:
187
187
echo "DOCKER_TAGS=ghcr.io/box-project/box" >> $GITHUB_ENV
188
188
echo "DOCKER_TEST_TAG=ghcr.io/box-project/box" >> $GITHUB_ENV
189
189
190
- - name : Build and export to Docker
190
+ - name : Build and export to Docker (amd64)
191
191
uses : docker/build-push-action@v6
192
192
with :
193
193
context : .
@@ -196,15 +196,27 @@ jobs:
196
196
tags : ${{ env.DOCKER_TAGS }}
197
197
load : true
198
198
199
- - name : Test the (release) image
200
- run : docker run --rm ${{ env.DOCKER_TEST_TAG }} --version
199
+ - name : Test the (release) image (amd64)
200
+ run : docker run --rm --platform=linux/amd64 ${{ env.DOCKER_TEST_TAG }} --version
201
+
202
+ - name : Build and export to Docker (arm64)
203
+ uses : docker/build-push-action@v6
204
+ with :
205
+ context : .
206
+ file : ${{ env.DOCKERFILE }}
207
+ platforms : linux/arm64/v8
208
+ tags : ${{ env.DOCKER_TAGS }}
209
+ load : true
210
+
211
+ - name : Test the (release) image (arm64)
212
+ run : docker run --rm --platform=linux/arm64/v8 ${{ env.DOCKER_TEST_TAG }} --version
201
213
202
214
- name : Build and push
203
215
if : github.event_name == 'release'
204
216
uses : docker/build-push-action@v6
205
217
with :
206
218
context : .
207
219
file : ${{ env.DOCKERFILE }}
208
- platforms : linux/amd64
220
+ platforms : linux/amd64,linux/arm64/v8
209
221
tags : ${{ env.DOCKER_TAGS }}
210
222
push : true
0 commit comments