Enable automated gitlab build and k8s deployment.

This commit is contained in:
an 2017-12-14 08:07:46 +01:00
parent 329d5b2760
commit 08332798df
4 changed files with 0 additions and 29 deletions

View File

@ -13,8 +13,6 @@ WORKDIR /app
RUN go get -d code.dnix.de/an/flokatilib/... RUN go get -d code.dnix.de/an/flokatilib/...
RUN go get -d code.dnix.de/an/xlog RUN go get -d code.dnix.de/an/xlog
RUN go get -d ./... RUN go get -d ./...
RUN ./genversion.sh
RUN ./genbuilddate.sh
RUN go build -o mmflokati . RUN go build -o mmflokati .
CMD ["/app/mmflokati"] CMD ["/app/mmflokati"]

View File

@ -1,6 +0,0 @@
#!/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

View File

@ -1,9 +0,0 @@
#!/bin/sh
BUILDDATEGO="builddate.go"
echo "package main" >$BUILDDATEGO
echo "" >>$BUILDDATEGO
echo "const (" >>$BUILDDATEGO
echo -n " FlokatiBuilddate = \"" >>$BUILDDATEGO
echo -n `date` >>$BUILDDATEGO
echo "\"" >>$BUILDDATEGO
echo ")" >>$BUILDDATEGO

View File

@ -1,12 +0,0 @@
#!/bin/sh
VERSIONGO="version.go"
echo "package main" >$VERSIONGO
echo "" >>$VERSIONGO
echo "const (" >>$VERSIONGO
echo -n " FlokatiVersion = \"" >>$VERSIONGO
echo -n `git rev-parse --abbrev-ref HEAD` >>$VERSIONGO
echo "\"" >>$VERSIONGO
echo -n " FlokatiBuild = \"" >>$VERSIONGO
echo -n `git rev-list HEAD --count` >>$VERSIONGO
echo "\"" >>$VERSIONGO
echo ")" >>$VERSIONGO