Skip to content

Commit

Permalink
Make x86_64->amd64 arch param conversion to match image names
Browse files Browse the repository at this point in the history
Signed-off-by: Yury Tsarev <yury@upbound.io>
  • Loading branch information
ytsarev committed Jun 9, 2024
1 parent 47df9fa commit e3658bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ endif
###############################
# CONSTANTS
###############################
ARCH ?= $(shell uname -m)
ifeq ($(ARCH), x86_64)
ARCH=amd64
endif
CLUSTERS_NUMBER ?= 2
CLUSTER_IDS = $(shell seq $(CLUSTERS_NUMBER))
CLUSTER_NAME ?= test-gslb
Expand Down Expand Up @@ -148,7 +152,7 @@ deploy-test-version: ## Upgrade k8gb to the test version on existing clusters

@for c in $(CLUSTER_IDS); do \
echo -e "\n$(CYAN)$(CLUSTER_NAME)$$c:$(NC)" ;\
k3d image import $(REPO):$(SEMVER)-$$(uname -m) -c $(CLUSTER_NAME)$$c ;\
k3d image import $(REPO):$(SEMVER)-$(ARCH) -c $(CLUSTER_NAME)$$c ;\
done

@for c in $(CLUSTER_IDS); do \
Expand Down

0 comments on commit e3658bb

Please sign in to comment.