diff --git a/Makefile b/Makefile index da77654..6a54ada 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ SHELL := /bin/bash BOUNCER_VERSION ?= GIT_COMMIT := $(shell git rev-parse --short HEAD) -DATE_VERSION := $(shell date +%Y.%-m.%-d) +DATE_VERSION := $(shell git show -s --format=%cd --date=format:'%Y-%-m-%d' $(GIT_COMMIT)) FULL_VERSION := v$(DATE_VERSION)-$(GIT_COMMIT)$(if $(shell git diff --stat),-dirty,) DOCKER_IMAGE_NAME ?= reg.cadoles.com/cadoles/bouncer