mirror of https://github.com/knative/client.git
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:
parent
9610c933b6
commit
d1a1fc94ce
|
@ -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 $@
|
||||
|
|
Loading…
Reference in New Issue