summaryrefslogtreecommitdiff
path: root/build.sh
blob: 9e2f53b1e2e8fac64c4a4e11388b440e8957a1ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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' ) .