Skip to content

Commit 2ff55a3

Browse files
Simon HirstGitHub Enterprise
authored andcommitted
Only run a fake master if MAIN_BRANCH and SOURCE_BRANCH are set
2 parents 6e10f3b + 7c05f4c commit 2ff55a3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,9 @@ else ifeq "$(ARCH)" "s390x"
117117
endif
118118

119119
# If this is a fake master build, push images to alternative location (pipeline wont consider these images GA candidates)
120-
ifeq "$(TRAVIS)" "true"
121-
ifneq "$(MAIN_BRANCH)" "$(SOURCE_BRANCH)"
120+
ifeq ($(shell [ "$(TRAVIS)" = "true" ] && [ -n $(MAIN_BRANCH) ] && [ -n $(SOURCE_BRANCH) ] && [ "$(MAIN_BRANCH)" != "$(SOURCE_BRANCH)" ] && echo "true"), true)
122121
MQ_DELIVERY_REGISTRY_NAMESPACE="master-fake"
123122
endif
124-
endif
125123

126124
# LTS_TAG is the tag modifier for an LTS container build
127125
LTS_TAG=

0 commit comments

Comments
 (0)