update get commit number from latest tag.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
42457f46db
commit
a1c0fa73de
7
Makefile
7
Makefile
@ -1,6 +1,6 @@
|
||||
.PHONY: install build test html update docker_build docker_image docker_deploy clean
|
||||
.PHONY: install build test html update docker_build docker_image docker_deploy clean version
|
||||
|
||||
VERSION := $(shell git describe --tags || git rev-parse --short HEAD)
|
||||
VERSION := $(shell git describe --tags --always || git rev-parse --short HEAD)
|
||||
DEPLOY_ACCOUNT := "appleboy"
|
||||
DEPLOY_IMAGE := "drone-telegram"
|
||||
|
||||
@ -43,3 +43,6 @@ endif
|
||||
|
||||
clean:
|
||||
rm -rf coverage.txt ${DEPLOY_IMAGE}
|
||||
|
||||
version:
|
||||
@echo $(VERSION)
|
||||
|
Loading…
Reference in New Issue
Block a user