diff --git a/Makefile b/Makefile index 6586b3a..9f3ef64 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ # 变量定义 APP_NAME := yinli-api -VERSION := 1.0.0 +VERSION := $(shell git tag --sort=-version:refname | head -n 1 2>/dev/null || echo "1.0.0") BUILD_DIR := build DOCKER_DIR := docker DOC_DIR := doc