build.sh 253 B

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