From f199722a516d50b1114eff5989f152c42cb47d2b Mon Sep 17 00:00:00 2001 From: jqzhang Date: Thu, 22 Apr 2021 12:35:50 +0800 Subject: [PATCH] git add tag for version --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 9a956575..f376d589 100644 --- a/build.sh +++ b/build.sh @@ -1,6 +1,6 @@ #!/bin/bash -BIN_VERSION="go-fastdfs:${1-not set}" +BIN_VERSION="go-fastdfs:${1-$(git describe --tags `git rev-parse HEAD`)}" if [[ ! -d src ]];then