Skip to content

Commit 8731a68

Browse files
committed
makefile: add buildargs to build commands
1 parent 4422e1c commit 8731a68

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ help:
1111
@echo " 5. make purge - stop and remove the container"
1212

1313
build:
14-
@docker build --tag=sameersbn/gitlab .
14+
@docker build --tag=sameersbn/gitlab . \
15+
--build-arg BUILD_DATE="$(shell date +"%Y-%m-%d %H:%M:%S%:z")" \
16+
--build-arg VCS_REF=$(shell git rev-parse --short HEAD)
1517

1618
release: build
17-
@docker build --tag=sameersbn/gitlab:$(shell cat VERSION) .
19+
@docker build --tag=sameersbn/gitlab:$(shell cat VERSION) . \
20+
--build-arg BUILD_DATE="$(shell date +"%Y-%m-%d %H:%M:%S%:z")" \
21+
--build-arg VCS_REF=$(git describe --tags --always)
1822

1923
quickstart:
2024
@echo "Starting postgresql container..."

0 commit comments

Comments
 (0)