From fe1b45307ba06e826ede969f1934b9c0c60339ce Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Fri, 24 Jan 2025 17:40:50 +0100 Subject: [PATCH] ci: Replace questionable binfmt container with Debian qemu-user-static 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 --- .github/actions/docker-init/action.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/actions/docker-init/action.yml b/.github/actions/docker-init/action.yml index fda18fa1..6cb1691e 100644 --- a/.github/actions/docker-init/action.yml +++ b/.github/actions/docker-init/action.yml @@ -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