Skip to content

Commit

Permalink
fix(dev): make build-ttl.sh should respect OS and ARCH (#4925)
Browse files Browse the repository at this point in the history
  • Loading branch information
emosbaugh authored Sep 27, 2024
1 parent 922bdd5 commit e006df8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit e006df8

Please sign in to comment.