You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/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' ) .
|