Skip to content

Commit 945f55f

Browse files
authored
Ability to push kots binary to ttl.sh (#5228)
1 parent 0ec7cd0 commit 945f55f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,16 @@ build-ttl.sh: web kots build
143143
docker build --platform $(OS)/$(ARCH) -f dev/dockerfiles/kotsadm/Dockerfile.ttlsh -t ttl.sh/${CURRENT_USER}/kotsadm:24h .
144144
docker push ttl.sh/${CURRENT_USER}/kotsadm:24h
145145

146+
.PHONY: kots-ttl.sh
147+
kots-ttl.sh: export GOOS ?= $(OS)
148+
kots-ttl.sh: export GOARCH ?= $(ARCH)
149+
kots-ttl.sh: kots
150+
cd bin && \
151+
tar czf kots.tar.gz kots && \
152+
oras push ttl.sh/${CURRENT_USER}/kots.tar.gz:24h \
153+
--artifact-type application/vnd.unknown.layer.v1+binary \
154+
kots.tar.gz:application/gzip
155+
146156
.PHONY: all-ttl.sh
147157
all-ttl.sh: export GOOS ?= $(OS)
148158
all-ttl.sh: export GOARCH ?= $(ARCH)

0 commit comments

Comments
 (0)