scripts/publishDocker
#!/bin/sh
set -e
VERSION=$1
TAG=beta
if [ "$MB_RELEASE" = "true" ]; then
TAG=latest
fi
cd dist/mountebank
docker context create mountebank
docker buildx create mountebank --use
# https://stackoverflow.com/questions/72167570/docker-buildx-nodejs-fail
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker login --username $DOCKER_USER --password "$DOCKER_PASSWORD"
docker buildx build --platform=linux/arm64,linux/amd64 --no-cache --tag bbyars/mountebank:$MB_VERSION --tag bbyars/mountebank:$TAG --push .