From a738f26349409d65dc9c455d4a8fc88e5cc6121c Mon Sep 17 00:00:00 2001 From: seanauff Date: Mon, 8 Jun 2020 13:22:18 -0400 Subject: [PATCH] add buildx script --- buildx.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 buildx.sh diff --git a/buildx.sh b/buildx.sh new file mode 100644 index 0000000..bc2e026 --- /dev/null +++ b/buildx.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env sh + +REPO=seanauff +IMAGE=octoprint-klipper +PLATFORMS="linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64" + +docker context use x86_64 +export DOCKER_CLI_EXPERIMENTAL="enabled" +docker buildx use multiarch-builder + +# Build & push latest +docker buildx build -t ${REPO}/${IMAGE}:latest --compress --push --platform "${PLATFORMS}" . \ No newline at end of file