Skip to content

Commit

Permalink
MG-341 fixing version update at builder file
Browse files Browse the repository at this point in the history
  • Loading branch information
mageddo committed Jul 14, 2017
1 parent 378ae15 commit c0ae11e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions builder
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ case $1 in
build )

echo "starting build"
VERSION=`cat VERSION`

rm -rf build/ && \
mkdir -p build/ && \
Expand All @@ -31,11 +32,11 @@ case $1 in
cd src && \
go test -cover=false ./github.com/mageddo/dns-proxy-server/.../ && \
go build -v -o ../build/dns-proxy-server \
-ldflags "-X github.com/mageddo/dns-proxy-server/flags.version=`cat ../VERSION`" && \
-ldflags "-X github.com/mageddo/dns-proxy-server/flags.version=$VERSION" && \
cp -r ../static ../build/ && \
cp ../dns-proxy-service ../build/dns-proxy-service && \
cd ../build/ && \
tar -cvf dns-proxy-server-2.0.19.tgz * && \
tar -cvf dns-proxy-server-$VERSION.tgz * && \
cd ../

echo "build success"
Expand Down

0 comments on commit c0ae11e

Please sign in to comment.