makefile: add buildargs to build commands

This commit is contained in:
Sameer Naik
2020-05-06 10:05:19 +05:30
parent 4422e1c4a0
commit 8731a6844e

View File

@ -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..."