From 149270507c8ac003e910a6c4b07c16e7f99d9ef4 Mon Sep 17 00:00:00 2001 From: Kamesh Sampath Date: Sat, 4 Feb 2023 00:43:13 +0530 Subject: [PATCH] fix: generate checksum for k3d binaries fixes #1208 --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index c7ef0abca..fcf56d70f 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-%: