fix(version): use the travis tag for the version

if there are no changes then `git describe --tags `git rev-list --tags --max-count=1`
may return older tag as there will be two tags referring to the same commit.

Using travis tag here to clearly differentiate the versions.

Signed-off-by: Pawan <pawan@mayadata.io>
This commit is contained in:
Pawan 2020-05-14 15:47:00 +05:30 committed by Kiran Mova
parent 9c81ba9587
commit 4a92213505

View file

@ -34,7 +34,7 @@ fi
# Get the version details
if [ -n "$TRAVIS_TAG" ]; then
VERSION="$(git describe --tags `git rev-list --tags --max-count=1`)"
VERSION="$TRAVIS_TAG"
else
BUILDDATE=`date +%m-%d-%Y`
SHORT_COMMIT="$(git rev-parse --short HEAD)"