Finetuned build.sh.
This commit is contained in:
1 parent
e11babd0c8
commit
206b111d59
1 file changed
+5
-1
@@ -3,7 +3,7 @@
|
|||||||
ARCH=()
|
ARCH=()
|
||||||
VERSION_ARG=()
|
VERSION_ARG=()
|
||||||
VERSION=""
|
VERSION=""
|
||||||
REGISTRY=""
|
REGISTRY="registry.koszewscy.waw.pl"
|
||||||
AZURITE_IMAGE="${AZURITE_IMAGE:-azurite:latest}"
|
AZURITE_IMAGE="${AZURITE_IMAGE:-azurite:latest}"
|
||||||
|
|
||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
||||||
@@ -34,6 +34,10 @@ while [[ $# -gt 0 ]]; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [[ ${#ARCH[@]} -eq 0 ]]; then
|
||||||
|
ARCH=("--arch" "arm64" "--arch" "amd64")
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ ! -z "$REGISTRY" ]]; then
|
if [[ ! -z "$REGISTRY" ]]; then
|
||||||
# Prepend the registry to the image name for tagging.
|
# Prepend the registry to the image name for tagging.
|
||||||
AZURITE_IMAGE="$REGISTRY/${AZURITE_IMAGE#*/}"
|
AZURITE_IMAGE="$REGISTRY/${AZURITE_IMAGE#*/}"
|
||||||
|
|||||||
Reference in new issue
Block a user