Add arm64 image build capability

This commit is contained in:
Andrejs Cunskis 2022-08-21 13:05:53 +03:00
parent acce4ded1b
commit c2838c613d
No known key found for this signature in database
GPG key ID: 87CB75083F227241
14 changed files with 43 additions and 60 deletions

View file

@ -4,7 +4,7 @@ set -xeou pipefail
BUILDX_VERSION=${1}
BUILDX_DOWNLOAD_SHA256=${2}
BUILDX_DOWNLOAD_URL="https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-$(dpkg --print-architecture)"
BUILDX_DOWNLOAD_URL="https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-${TARGETARCH:-amd64}"
curl -fsSL "${BUILDX_DOWNLOAD_URL}" -o docker-buildx
echo "${BUILDX_DOWNLOAD_SHA256} docker-buildx" | sha256sum -c -