Only run a fake master if MAIN_BRANCH and SOURCE_BRANCH are set

This commit is contained in:
Simon Hirst
2022-07-14 17:46:26 +01:00
parent 6e10f3ba76
commit 7c05f4cbcb

View File

@@ -117,11 +117,9 @@ else ifeq "$(ARCH)" "s390x"
endif
# If this is a fake master build, push images to alternative location (pipeline wont consider these images GA candidates)
ifeq "$(TRAVIS)" "true"
ifneq "$(MAIN_BRANCH)" "$(SOURCE_BRANCH)"
ifeq ($(shell [ "$(TRAVIS)" = "true" ] && [ -n $(MAIN_BRANCH) ] && [ -n $(SOURCE_BRANCH) ] && [ "$(MAIN_BRANCH)" != "$(SOURCE_BRANCH)" ] && echo "true"), true)
MQ_DELIVERY_REGISTRY_NAMESPACE="master-fake"
endif
endif
# LTS_TAG is the tag modifier for an LTS container build
LTS_TAG=