From acd39ed0af034cb43dda07708599494e82e5113f Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Sat, 21 Jan 2017 21:50:59 +0100 Subject: [PATCH] dockerbuild.sh added --- dockerbuild.sh-dist | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 dockerbuild.sh-dist diff --git a/dockerbuild.sh-dist b/dockerbuild.sh-dist new file mode 100755 index 0000000..3b07f12 --- /dev/null +++ b/dockerbuild.sh-dist @@ -0,0 +1,6 @@ +#!/bin/sh +VERSION=`git rev-parse --abbrev-ref HEAD` +BUILD=`git rev-list HEAD --count` +echo $VERSION-$BUILD +docker build -t dr.dnix.de/flokatirc:$VERSION-$BUILD -f Dockerfile . +docker push dr.dnix.de/flokatirc:$VERSION-$BUILD