From 177138cb0ac61d23a26141bab0655892863a56ae Mon Sep 17 00:00:00 2001 From: probonopd Date: Sun, 24 Nov 2024 20:22:26 +0100 Subject: [PATCH] Keep platform --- ci/build-in-docker.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/ci/build-in-docker.sh b/ci/build-in-docker.sh index 9ae2bd7..c56ca03 100755 --- a/ci/build-in-docker.sh +++ b/ci/build-in-docker.sh @@ -7,6 +7,26 @@ if [[ "${ARCH:-}" == "" ]]; then exit 1 fi +case "$ARCH" in + x86_64) + platform=linux/amd64 + ;; + i686) + platform=linux/i386 + ;; + armhf) + platform=linux/arm/v7 + ;; + aarch64) + platform=linux/arm64/v8 + ;; + *) + echo "unknown architecture: $ARCH" + exit 2 + ;; +esac + + # libassuan-static is supported only from 3.19 onwards image=alpine:3.19