about summary refs log tree commit diff
path: root/hooks/build
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/build')
-rwxr-xr-xhooks/build3
1 files changed, 3 insertions, 0 deletions
diff --git a/hooks/build b/hooks/build
new file mode 100755
index 000000000..4f7259bec
--- /dev/null
+++ b/hooks/build
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+echo "Building from ${SOURCE_COMMIT}"
+docker build --build-arg SOURCE_COMMIT=`head -c 7 <<< $SOURCE_COMMIT` -t $IMAGE_NAME .