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.
This commit is contained in:
Roland Huß 2020-11-10 21:11:58 +01:00 committed by GitHub
parent 9610c933b6
commit d1a1fc94ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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 $@