Build arm64 images by default and additionally do not require docker buildx for simple builds

This commit is contained in:
Kamil Trzciński 2022-10-28 07:38:23 +00:00 committed by Andrejs Cunskis
parent 66c6656f97
commit f6a1f0e63f
12 changed files with 128 additions and 84 deletions

22
scripts/download-file Executable file
View file

@ -0,0 +1,22 @@
#!/bin/bash
if [[ $# -lt 3 ]]; then
echo "usage: $0 <file> <url> <checksum(s)...>" 1>&2
exit 1
fi
set -xeou pipefail
FILE="$1"
URL="$2"
shift 2
curl --retry 6 -fsSL "$URL" -o "$FILE"
for checksum; do
if echo "${checksum} ${FILE}" | sha256sum -c -; then
exit 0
fi
done
exit 1