Skip to content

Commit c0ae11e

Browse files
committed
MG-341 fixing version update at builder file
1 parent 378ae15 commit c0ae11e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

builder

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ case $1 in
2323
build )
2424

2525
echo "starting build"
26+
VERSION=`cat VERSION`
2627

2728
rm -rf build/ && \
2829
mkdir -p build/ && \
@@ -31,11 +32,11 @@ case $1 in
3132
cd src && \
3233
go test -cover=false ./github.com/mageddo/dns-proxy-server/.../ && \
3334
go build -v -o ../build/dns-proxy-server \
34-
-ldflags "-X github.com/mageddo/dns-proxy-server/flags.version=`cat ../VERSION`" && \
35+
-ldflags "-X github.com/mageddo/dns-proxy-server/flags.version=$VERSION" && \
3536
cp -r ../static ../build/ && \
3637
cp ../dns-proxy-service ../build/dns-proxy-service && \
3738
cd ../build/ && \
38-
tar -cvf dns-proxy-server-2.0.19.tgz * && \
39+
tar -cvf dns-proxy-server-$VERSION.tgz * && \
3940
cd ../
4041

4142
echo "build success"

0 commit comments

Comments
 (0)