Skip to content

Commit

Permalink
makefile: add buildargs to build commands
Browse files Browse the repository at this point in the history
  • Loading branch information
sameersbn committed May 6, 2020
1 parent 4422e1c commit 8731a68
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand Down

0 comments on commit 8731a68

Please sign in to comment.