summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhooks/post_push5
1 files changed, 5 insertions, 0 deletions
diff --git a/hooks/post_push b/hooks/post_push
new file mode 100755
index 0000000..c3a2958
--- /dev/null
+++ b/hooks/post_push
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+SHORTHASH="$(git rev-parse --short HEAD)"
+docker tag $IMAGE_NAME $DOCKER_REPO:$SHORTHASH
+docker push $DOCKER_REPO:$SHORTHASH \ No newline at end of file