getting-started/build.sh
Stefan Scherer b66f1c3224
Build amd64 and arm64 image
Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
2020-12-10 12:34:01 +01:00

15 lines
253 B
Bash
Executable File

#!/bin/bash
set -e
if [ $1 == "--push" ]; then
WILL_PUSH=1
else
WILL_PUSH=0
fi
docker buildx build \
--platform linux/amd64,linux/arm64 \
-t docker/getting-started:latest \
$( (( $WILL_PUSH == 1 )) && printf %s '--push' ) .