From e006df8a5bea25c708ca1c3ea02a58cd25aca747 Mon Sep 17 00:00:00 2001 From: Ethan Mosbaugh Date: Fri, 27 Sep 2024 11:05:51 -0500 Subject: [PATCH] fix(dev): make build-ttl.sh should respect OS and ARCH (#4925) --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index ec675a3186..89c6ae8707 100644 --- a/Makefile +++ b/Makefile @@ -118,11 +118,15 @@ web: source .image.env && ${MAKE} -C web build-kotsadm .PHONY: build-ttl.sh +build-ttl.sh: export GOOS ?= $(OS) +build-ttl.sh: export GOARCH ?= $(ARCH) build-ttl.sh: web kots build docker build --platform $(OS)/$(ARCH) -f dev/dockerfiles/kotsadm/Dockerfile.ttlsh -t ttl.sh/${CURRENT_USER}/kotsadm:24h . docker push ttl.sh/${CURRENT_USER}/kotsadm:24h .PHONY: all-ttl.sh +all-ttl.sh: export GOOS ?= $(OS) +all-ttl.sh: export GOARCH ?= $(ARCH) all-ttl.sh: build-ttl.sh source .image.env && \ IMAGE=ttl.sh/${CURRENT_USER}/kotsadm-migrations:24h \