dockerbuild.sh added

This commit is contained in:
Andreas Neue 2017-01-21 21:50:59 +01:00
parent 5d2392bc5e
commit acd39ed0af
1 changed files with 6 additions and 0 deletions

6
dockerbuild.sh-dist Executable file
View File

@ -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