build: Add $TAG

Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
This commit is contained in:
Tim Hårek Andreassen 2024-10-26 19:15:57 +02:00
parent 2077eb5a25
commit b09c928d45
No known key found for this signature in database
GPG key ID: E59C7734F0E10EB5
2 changed files with 5 additions and 7 deletions

View file

@ -22,9 +22,7 @@ tasks:
complete-build
fi
version=$(echo "$tag" | tr -d 'v')
make GOOS="darwin" ARCH="amd64" build-release
make GOOS="dawrin" ARCH="aarch64" build-release
make GOOS="linux" ARCH="amd64" build-release
make GOOS="windows" ARCH="amd64" build-release
make GOOS="darwin" ARCH="amd64" tag=$tag build-release
make GOOS="dawrin" ARCH="aarch64" tag=$tag build-release
make GOOS="linux" ARCH="amd64" tag=$tag build-release
make GOOS="windows" ARCH="amd64" tag=$tag build-release

View file

@ -30,7 +30,7 @@ build-release: build
cp $(builddir)/yr* yr-$(VERSION)/
tar czf yr-$(VERSION)-$(GOOS)-$(ARCH).tar.gz yr-$(VERSION)
hut git artifact upload --rev $(tag) yr-$(VERSION)-$(GOOS)-$(ARCH).tar.gz
hut git artifact upload --rev $(TAG) yr-$(VERSION)-$(GOOS)-$(ARCH).tar.gz
.PHONY: test
test: