mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
Build arm64 images by default and additionally do not require docker buildx for simple builds
This commit is contained in:
parent
66c6656f97
commit
f6a1f0e63f
12 changed files with 128 additions and 84 deletions
22
scripts/download-file
Executable file
22
scripts/download-file
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue