Skip to content

Commit 209054f

Browse files
authored
build(image): revert docker build tweak for arm64 (#887)
arm64 Images (and amd64 ones) now building again in CI 😐 .
1 parent 4b827f0 commit 209054f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/docker-publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ jobs:
3131
SHORT_SHA: ${{ needs.set-short-sha.outputs.short_sha }}
3232
steps:
3333
- name: Set up Docker
34-
# Use the `docker` driver because the `docker-container` driver may fail to locally load the built image.
34+
# Use the `docker` driver for AMD builds because the `docker-container` driver may fail to locally load the built image.
35+
# This could be due to the larger size of the AMD build and the `docker-container` driver needing to load the tarball.
36+
# Use the `docker-container` driver for ARM builds because it may otherwise intermittently fail with: `exec /bin/sh: exec format error`
3537
uses: docker/setup-buildx-action@v1
3638
with:
37-
driver: 'docker'
39+
driver: ${{ matrix.docker-platform == 'linux/amd64' && 'docker' || 'docker-container' }}
3840
- name: Checkout code
3941
uses: actions/checkout@v3
4042
- name: Login to Quay.io

0 commit comments

Comments
 (0)