Skip to content

Commit

Permalink
ci: Replace questionable binfmt container with Debian qemu-user-static
Browse files Browse the repository at this point in the history
This fixes crashes for arm64 image builds, see also [1]. Ubuntu's
version does not seem to have this fixed yet either, therefor inject the
Debian package.

In addition, this moves aways from the floating
docker.io/tonistiigi/binfmt:latest that docker/setup-qemu-action@v3
uses.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1087822

Signed-off-by: Jan Kiszka <[email protected]>
  • Loading branch information
jan-kiszka committed Jan 24, 2025
1 parent d2cac88 commit fe1b453
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/docker-init/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ runs:
using: composite
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
shell: bash
run: |
# temporarily use Debian qemu-user-static until Ubuntu fixes theirs
wget -q http://ftp.debian.org/debian/pool/main/q/qemu/qemu-user-static_7.2+dfsg-7+deb12u12_amd64.deb
echo "1a2696081c1f30d464f79fd300196822397c77f05440ea9ce6dc8e9658b595ec qemu-user-static_7.2+dfsg-7+deb12u12_amd64.deb" | sha256sum -c
sudo dpkg -i qemu-user-static_7.2+dfsg-7+deb12u12_amd64.deb
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down

0 comments on commit fe1b453

Please sign in to comment.