From d1a1fc94ce96e9b9e1ee7f01ed0df2fb70e73855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Tue, 10 Nov 2020 21:11:58 +0100 Subject: [PATCH] feat: Add checksums.txt to release to have the sha256 checksums published, too. (#1108) * feat: Add checksums.txt to release to have the sha256 checksums published, too. * chore: Remove check for sha256sum as we are requiring it now for the release. --- hack/release.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hack/release.sh b/hack/release.sh index 58906b2ef..3b36c7936 100755 --- a/hack/release.sh +++ b/hack/release.sh @@ -40,10 +40,10 @@ function build_release() { echo "🚧 🐳 Building the container image" ko resolve --strict ${KO_FLAGS} -f config/ > kn-image-location.yaml ARTIFACTS_TO_PUBLISH="kn-darwin-amd64 kn-linux-amd64 kn-linux-arm64 kn-windows-amd64.exe kn-image-location.yaml" - if type sha256sum >/dev/null 2>&1; then - echo "🧮 Checksum:" - sha256sum ${ARTIFACTS_TO_PUBLISH} - fi + sha256sum "${ARTIFACTS_TO_PUBLISH}" > checksums.txt + ARTIFACTS_TO_PUBLISH="${ARTIFACTS_TO_PUBLISH} checksums.txt" + echo "🧮 Checksum:" + cat checksums.txt } main $@