From 44fa237c796fffc689c5bbf1336e3c1527b23393 Mon Sep 17 00:00:00 2001 From: Kamesh Sampath Date: Tue, 7 Feb 2023 12:11:17 +0530 Subject: [PATCH] fix: generate checksum for k3d binaries (#1209) --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index c7ef0abc..fcf56d70 100644 --- a/Makefile +++ b/Makefile @@ -126,6 +126,9 @@ build: build-cross: LDFLAGS += -extldflags "-static" build-cross: CGO_ENABLED=0 gox -parallel=3 -output="_dist/$(BINARIES)-{{.OS}}-{{.Arch}}" -osarch='$(TARGETS)' $(GOFLAGS) $(if $(TAGS),-tags '$(TAGS)',) -ldflags '$(LDFLAGS)' +gen-checksum: build-cross + $(eval ARTIFACTS_TO_PUBLISH := $(shell ls _dist/*)) + $$(sha256sum $(ARTIFACTS_TO_PUBLISH) > _dist/checksums.txt) # build a specific docker target ( '%' matches the target as specified in the Dockerfile) build-docker-%: