Skip to content

Commit

Permalink
Fix: build script issue
Browse files Browse the repository at this point in the history
Fix the issue of obtaining the latest tag of the current branch during
build.

Signed-off-by: Mofei Zhang <[email protected]>
  • Loading branch information
mervinkid committed Jul 20, 2020
1 parent 608db3c commit bcea9ab
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ BuildOutPath=${BuildPath}/out
BuildBinPath=${BuildPath}/bin
VendorPath=${RootPath}/vendor

Version=$(git describe --abbrev=0)
Version=$(git describe --abbrev=0 --tags)
BranchName=$(git rev-parse --abbrev-ref HEAD)
CommitID=$(git rev-parse HEAD)
BuildTime=$(date +%Y-%m-%d\ %H:%M)
Expand Down
2 changes: 1 addition & 1 deletion cli/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
Version=`git describe --abbrev=0`
Version=`git describe --abbrev=0 --tags`
BranchName=`git rev-parse --abbrev-ref HEAD`
CommitID=`git rev-parse HEAD`
BuildTime=`date +%Y-%m-%d\ %H:%M`
Expand Down
2 changes: 1 addition & 1 deletion client/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
Version=`git describe --abbrev=0`
Version=`git describe --abbrev=0 --tags`
BranchName=`git rev-parse --abbrev-ref HEAD`
CommitID=`git rev-parse HEAD`
BuildTime=`date +%Y-%m-%d\ %H:%M`
Expand Down
2 changes: 1 addition & 1 deletion cmd/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
Version=`git describe --abbrev=0`
Version=`git describe --abbrev=0 --tags`
BranchName=`git rev-parse --abbrev-ref HEAD`
CommitID=`git rev-parse HEAD`
BuildTime=`date +%Y-%m-%d\ %H:%M`
Expand Down

0 comments on commit bcea9ab

Please sign in to comment.