Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds .deb support, fixes .rpm in release artifact verification #304

Open
wants to merge 2 commits into
base: website
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions developers/committers/release-process/verify-release-artifacts.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ for ARCHIVE in $(find * -type f ! \( -name '*.asc' -o -name '*.sha256' \) ); do
;;
*.rpm)
LIST="rpm -qlp"
PREFIX="/opt/brooklyn"
PREFIX="/opt/brooklyn-${VERSION_NAME}"
;;
*.deb)
LIST="dpkg -c"
PREFIX="/opt/brooklyn-${VERSION_NAME}"
;;
*)
echo "Unrecognized file type $ARCHIVE. Aborting!"
Expand All @@ -98,9 +102,16 @@ Verify the hashes and signatures of artifacts
Then check the hashes and signatures, ensuring you get a positive message from each one:

{% highlight bash %}
GPG_COMMAND=$((which gpg >> /dev/null && echo gpg) || (which gpg2 >> /dev/null && echo gpg2))

if [ -z "${GPG_COMMAND}" ]; then
echo "gpg or gpg2 must be installed, exiting"
exit
fi

for artifact in $(find * -type f ! \( -name '*.asc' -o -name '*.sha256' \) ); do
shasum -a256 -c ${artifact}.sha256 && \
gpg2 --verify ${artifact}.asc ${artifact} \
$GPG_COMMAND --verify ${artifact}.asc ${artifact} \
|| { echo "Invalid signature for $artifact. Aborting!"; break; }
done
{% endhighlight %}
Expand Down