add buildx script

This commit is contained in:
seanauff 2020-06-08 13:22:18 -04:00
parent 8175638f7d
commit a738f26349
1 changed files with 12 additions and 0 deletions

12
buildx.sh Normal file
View File

@ -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}" .