Merge pull request #198 from knadh/fix-injected-version

fix: incorrect git tag being injected as version
This commit is contained in:
Kailash Nadh 2020-10-04 15:08:14 +05:30 committed by GitHub
commit 2109ee16f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
LAST_COMMIT := $(shell git rev-parse --short HEAD) LAST_COMMIT := $(shell git rev-parse --short HEAD)
LAST_COMMIT_DATE := $(shell git show -s --format=%ci ${LAST_COMMIT}) LAST_COMMIT_DATE := $(shell git show -s --format=%ci ${LAST_COMMIT})
VERSION := $(shell git describe) VERSION := $(shell git describe --tags)
BUILDSTR := ${VERSION} (${LAST_COMMIT} $(shell date -u +"%Y-%m-%dT%H:%M:%S%z")) BUILDSTR := ${VERSION} (${LAST_COMMIT} $(shell date -u +"%Y-%m-%dT%H:%M:%S%z"))
BIN := listmonk BIN := listmonk