mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* build: make sign rpm packages not depend on checking out private key * build: move commands from circleci config into verify signed packages script * build: split update and publish of deb and rpm into two scripts * use files argument for sign and verify packages * validate files argument for sign and verify packages * update test publish of deb/rpm readme
25 lines
393 B
Bash
Executable File
25 lines
393 B
Bash
Executable File
#!/bin/bash
|
|
|
|
_files=$*
|
|
|
|
if [ -z "$_files" ]; then
|
|
echo "_files (arg 1) has to be set"
|
|
exit 1
|
|
fi
|
|
|
|
mkdir -p ~/.rpmdb/pubkeys
|
|
curl -s https://packages.grafana.com/gpg.key > ~/.rpmdb/pubkeys/grafana.key
|
|
|
|
ALL_SIGNED=0
|
|
|
|
for file in $_files; do
|
|
if rpm -K "$file" | grep "pgp.*OK" -q ; then
|
|
echo "$file" OK
|
|
else
|
|
ALL_SIGNED=1
|
|
echo "$file" NOT SIGNED
|
|
fi
|
|
done
|
|
|
|
exit $ALL_SIGNED
|