rollback lightweight git-rev detection

This commit is contained in:
Umputun
2018-06-19 13:17:13 -05:00
parent ef347db0f4
commit abc0375f6a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
/web/public/
/.vscode/
/.idea/
/.git/objects/
#/.git/objects/
# source files
docker-compose.yml
+1 -1
View File
@@ -32,7 +32,7 @@ RUN if [ -z "$COVERALLS_TOKEN" ] ; then \
else goveralls -coverprofile=.cover/cover.out -service=travis-ci -repotoken $COVERALLS_TOKEN; fi
RUN \
version=$(/script/git-rev.sh) && \
version=$(git rev-parse --abbrev-ref HEAD)-$(git describe --abbrev=7 --always --tags)-$(date +%Y%m%d-%H:%M:%S) && \
echo "version $version" && \
go build -o remark -ldflags "-X main.revision=${version} -s -w" ./app