From 8731a6844ee945814d2e38f3e26caef2a6e0c6e4 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Wed, 6 May 2020 10:05:19 +0530 Subject: [PATCH] makefile: add buildargs to build commands --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 23f7daa3..a97663fe 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..."