Enable automated gitlab build and k8s deployment.
This commit is contained in:
parent
329d5b2760
commit
08332798df
|
@ -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"]
|
||||||
|
|
|
@ -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
|
|
|
@ -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
|
|
|
@ -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
|
|
Loading…
Reference in New Issue