Skip to content

Commit 330cd93

Browse files
committed
allow export image name and registry name
1 parent c6a88c6 commit 330cd93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.make

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
# This is the default. It can be overridden in the main Makefile after
2222
# including build.make.
23-
REGISTRY_NAME=quay.io/k8scsi
23+
REGISTRY_NAME?=quay.io/k8scsi
2424

2525
# Can be set to -mod=vendor to ensure that the "vendor" directory is used.
2626
GOFLAGS_VENDOR=
@@ -51,7 +51,7 @@ IMAGE_TAGS+=$(shell git branch -r --points-at=HEAD | grep 'origin/release-' | gr
5151
IMAGE_TAGS+=$(shell tagged="$$(git describe --tags --match='v*' --abbrev=0)"; if [ "$$tagged" ] && [ "$$(git rev-list -n1 HEAD)" = "$$(git rev-list -n1 $$tagged)" ]; then echo $$tagged; fi)
5252

5353
# Images are named after the command contained in them.
54-
IMAGE_NAME=$(REGISTRY_NAME)/$*
54+
IMAGE_NAME?=$(REGISTRY_NAME)/$*
5555

5656
ifdef V
5757
# Adding "-alsologtostderr" assumes that all test binaries contain glog. This is not guaranteed.

0 commit comments

Comments
 (0)