Only run a fake master if MAIN_BRANCH and SOURCE_BRANCH are set
This commit is contained in:
4
Makefile
4
Makefile
@@ -117,11 +117,9 @@ else ifeq "$(ARCH)" "s390x"
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# If this is a fake master build, push images to alternative location (pipeline wont consider these images GA candidates)
|
# If this is a fake master build, push images to alternative location (pipeline wont consider these images GA candidates)
|
||||||
ifeq "$(TRAVIS)" "true"
|
ifeq ($(shell [ "$(TRAVIS)" = "true" ] && [ -n $(MAIN_BRANCH) ] && [ -n $(SOURCE_BRANCH) ] && [ "$(MAIN_BRANCH)" != "$(SOURCE_BRANCH)" ] && echo "true"), true)
|
||||||
ifneq "$(MAIN_BRANCH)" "$(SOURCE_BRANCH)"
|
|
||||||
MQ_DELIVERY_REGISTRY_NAMESPACE="master-fake"
|
MQ_DELIVERY_REGISTRY_NAMESPACE="master-fake"
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
# LTS_TAG is the tag modifier for an LTS container build
|
# LTS_TAG is the tag modifier for an LTS container build
|
||||||
LTS_TAG=
|
LTS_TAG=
|
||||||
|
|||||||
Reference in New Issue
Block a user