From eda3910361a25e41eaeb1c19e0405dbf1bea0cc9 Mon Sep 17 00:00:00 2001 From: Adam Reese <adam@reese.io> Date: Thu, 6 Oct 2016 19:59:10 -0700 Subject: [PATCH] feat(ci): upload checksum with binary releases closes #1214 --- Makefile | 9 +++++++++ circle.yml | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9599b80a7..fbed23716 100644 --- a/Makefile +++ b/Makefile @@ -36,6 +36,15 @@ dist: $(DIST_DIRS) zip -r helm-${VERSION}-{}.zip {} \; \ ) +.PHONY: checksum +checksum: + ( \ + cd _dist && \ + for f in ./*.{tar.gz,zip} ; do \ + shasum -a 256 "$${f}" | awk '{print $$1}' > "$${f}.sha256" ; \ + done \ + ) + .PHONY: check-docker check-docker: @if [ -z $$(which docker) ]; then \ diff --git a/circle.yml b/circle.yml index dc4366df0..4434754d8 100644 --- a/circle.yml +++ b/circle.yml @@ -55,7 +55,7 @@ deployment: # build canary helm binaries and push - make build-cross - - make dist VERSION="${CIRCLE_TAG}" + - make dist checksum VERSION="${CIRCLE_TAG}" - sudo /opt/google-cloud-sdk/bin/gsutil cp ./_dist/* "gs://${PROJECT_NAME}" canary: @@ -74,5 +74,5 @@ deployment: # build canary helm binaries and push - make build-cross - - make dist VERSION=canary + - make dist checksum VERSION=canary - sudo /opt/google-cloud-sdk/bin/gsutil cp ./_dist/* "gs://${PROJECT_NAME}" -- GitLab