diff --git a/Makefile b/Makefile index 23f7daa36..a97663fe8 100644 --- a/Makefile +++ b/Makefile @@ -11,10 +11,14 @@ help: @echo " 5. make purge - stop and remove the container" build: - @docker build --tag=sameersbn/gitlab . + @docker build --tag=sameersbn/gitlab . \ + --build-arg BUILD_DATE="$(shell date +"%Y-%m-%d %H:%M:%S%:z")" \ + --build-arg VCS_REF=$(shell git rev-parse --short HEAD) release: build - @docker build --tag=sameersbn/gitlab:$(shell cat VERSION) . + @docker build --tag=sameersbn/gitlab:$(shell cat VERSION) . \ + --build-arg BUILD_DATE="$(shell date +"%Y-%m-%d %H:%M:%S%:z")" \ + --build-arg VCS_REF=$(git describe --tags --always) quickstart: @echo "Starting postgresql container..."