summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorMavlushechka <mavlushechka@gmail.com>2022-09-24 00:07:19 +0500
committerMavlushechka <mavlushechka@gmail.com>2022-09-24 00:07:19 +0500
commit43ffc1d6e59f2d118c730e968e032fcecbeaf202 (patch)
tree7e1e87163c8af30cd29d2b6e745d1c6b1077dc25 /build.sh
parente7c380c64056a004a1d61f04df7afb2a1c1c3675 (diff)
Copy docker/getting-started repository
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..9e2f53b
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,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' ) .