Skip to content

Commit d1c28fa

Browse files
committedJan 30, 2025·
ci: Replace binfmt container with Debian qemu-user-static
This apparently fixes sporadic crashes of arm64 image builds, see also [1] and [2]. Ubuntu's version of qemu-user does not seem to have this fixed yet either, therefore inject the current Debian package. In addition, this moves away from the floating docker.io/tonistiigi/binfmt:latest that docker/setup-qemu-action@v3 uses. This loose coupling is questionable, not only in the light of this issue. [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1087822 [2] tonistiigi/binfmt#215 Co-Developed-by: Felix Moessbauer <[email protected]> Signed-off-by: Jan Kiszka <[email protected]>
1 parent d2cac88 commit d1c28fa

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed
 

‎.github/actions/docker-init/action.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,16 @@ runs:
1212
using: composite
1313
steps:
1414
- name: Set up QEMU
15-
uses: docker/setup-qemu-action@v3
15+
shell: bash
16+
env:
17+
QEMU_USER_STATIC_PACKAGE: qemu-user-static_7.2+dfsg-7+deb12u12_amd64.deb
18+
REPO_DATE: 20250130T084806Z
19+
PACKAGE_SHA256: 1a2696081c1f30d464f79fd300196822397c77f05440ea9ce6dc8e9658b595ec
20+
run: |
21+
# temporarily use Debian qemu-user-static until Ubuntu fixes theirs
22+
wget -q http://snapshot.debian.org/archive/debian/${REPO_DATE}/pool/main/q/qemu/${QEMU_USER_STATIC_PACKAGE}
23+
echo "${PACKAGE_SHA256} ${QEMU_USER_STATIC_PACKAGE}" | sha256sum -c
24+
sudo dpkg -i ${QEMU_USER_STATIC_PACKAGE}
1625
1726
- name: Set up Docker Buildx
1827
uses: docker/setup-buildx-action@v3

0 commit comments

Comments
 (0)
Please sign in to comment.