2020-02-06 03:04:43 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2020-06-26 13:48:28 +00:00
|
|
|
if [ "$1" == "--push" ]; then
|
2020-02-06 03:04:43 +00:00
|
|
|
WILL_PUSH=1
|
|
|
|
else
|
|
|
|
WILL_PUSH=0
|
|
|
|
fi
|
|
|
|
|
|
|
|
docker buildx build \
|
|
|
|
--platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 \
|
|
|
|
-t docker/getting-started:latest \
|
|
|
|
$( (( $WILL_PUSH == 1 )) && printf %s '--push' ) .
|