diff --git a/Makefile b/Makefile index 67c1186..eb94023 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,9 @@ BUILD_DIR = ./build TMP_DIR = ./tmp APPS := $(notdir $(wildcard ./cmd/*)) -VERSION := $(shell git rev-parse --short HEAD) +COMMIT_HASH := $(shell git rev-parse --short HEAD) +DATE := $(shell date +"%Y%m%d-%H%M%S") +VERSION := $(COMMIT_HASH)-$(DATE) FLAGS := "-s -w -X main.Version=$(VERSION)" all: build