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