chore: Produce single digest file with sha256sum (#13366)

This commit is contained in:
Joshua Powers 2023-05-31 02:10:37 -06:00 committed by GitHub
parent 76889af6f2
commit 9771f0805d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -540,10 +540,9 @@ jobs:
case "${target}"
in
*.deb|*.dmg|*.rpm|*.tar.gz|*.zip)
# Combine the metadata from the *.DIGESTS and *.asc files into one
# listing. Since the gpg signature contains multiple lines which
# must be preserved, it is base64 encoded.
printf '%s %s %s\n' "${target}" "$(awk '{ print $1 }' "${target}.DIGESTS")" "$(base64 -w 0 <"${target}.asc")" >>"telegraf-${CIRCLE_TAG}-digests"
# Print sha256 hash and target for artifacts all in one file
# for use later during the release.
cat "${target}.DIGESTS" >> "telegraf-${CIRCLE_TAG}.DIGESTS"
;;
esac
done