summaryrefslogtreecommitdiff
path: root/docker/alpine/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/alpine/build.sh')
-rwxr-xr-xdocker/alpine/build.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/docker/alpine/build.sh b/docker/alpine/build.sh
index 22a36877c0..3132feb9f1 100755
--- a/docker/alpine/build.sh
+++ b/docker/alpine/build.sh
@@ -6,7 +6,15 @@ set -x
##
# Package version needs to be decimal
##
-GITREV="$(git rev-parse --short=10 HEAD)"
+
+##
+# Set GITREV=0 or similar in ENV if you want the tag to just be updated to -0
+# everytime for automation usage/scripts/etc locally.
+#
+# Ex) GITREV=0 ./build.sh
+##
+
+GITREV="${GITREV:=$(git rev-parse --short=10 HEAD)}"
PKGVER="$(printf '%u\n' 0x$GITREV)"
docker build \