Skip to content

Commit 37c93b0

Browse files
authored
Merge pull request #474 from wadebee/feature/preview-%
Moved CLUSTERGROUP declaration to restore make preview-% functionality
2 parents 2d36b61 + 890ac2e commit 37c93b0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
NAME ?= $(shell basename "`pwd`")
2+
CLUSTERGROUP ?= $(shell yq ".main.clusterGroupName" values-global.yaml)
3+
24
ifneq ($(origin TARGET_SITE), undefined)
35
TARGET_SITE_OPT=--set main.clusterGroupName=$(TARGET_SITE)
46
endif
@@ -60,7 +62,6 @@ preview-all: ## (EXPERIMENTAL) Previews all applications on hub and managed clus
6062
@common/scripts/preview-all.sh $(TARGET_REPO) $(TARGET_BRANCH)
6163

6264
preview-%:
63-
CLUSTERGROUP?=$(shell yq ".main.clusterGroupName" values-global.yaml)
6465
@common/scripts/preview.sh $(CLUSTERGROUP) $* $(TARGET_REPO) $(TARGET_BRANCH)
6566

6667
.PHONY: operator-deploy

0 commit comments

Comments
 (0)