diff --git a/docker/deploy-multiarch.sh b/docker/deploy-multiarch.sh new file mode 100755 index 00000000..873df078 --- /dev/null +++ b/docker/deploy-multiarch.sh @@ -0,0 +1,44 @@ +#!/bin/sh + +set -e + +export DOCKER_REPO="klutchell/balena-cli" +export BALENA_CLI_VERSION="12.38.2" +export DOCKER_CLI_EXPERIMENTAL=enabled + +docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + +docker buildx build debian \ + --build-arg BALENA_CLI_VERSION \ + --platform linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6 \ + --tag "${DOCKER_REPO}:${BALENA_CLI_VERSION}-debian" \ + --tag "${DOCKER_REPO}:debian" \ + --tag "${DOCKER_REPO}:${BALENA_CLI_VERSION}" \ + --tag "${DOCKER_REPO}:latest" \ + --pull --push -f-<