Skip to content

Commit

Permalink
Update ordering of Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
lachie83 committed Mar 13, 2018
1 parent 311737b commit 5425abb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
DOCKER_IMAGE ?= lachlanevenson/internallb-webhook-admission-controller
GIT_BRANCH ?= `git rev-parse --abbrev-ref HEAD`

ifeq ($(GIT_BRANCH),)
DOCKER_TAG = ${CIRCLE_TAG}
endif

ifeq ($(GIT_BRANCH), master)
DOCKER_TAG = latest
else
DOCKER_TAG = $(GIT_BRANCH)
endif

ifeq ($(GIT_BRANCH),)
DOCKER_TAG = ${CIRCLE_TAG}
endif

docker_build:
docker build -t $(DOCKER_IMAGE):$(DOCKER_TAG) .

Expand Down

0 comments on commit 5425abb

Please sign in to comment.