X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=packaging%2Fgit-build;h=56ae21664ab50f5a2bb5e1842294033fd1c3c619;hb=db05ad1b423745cb4695bbbbb6c9e2c7280702e7;hp=e33d2355c618eee9811ab6fef1afba970e040f27;hpb=7e1e77dc6595016962e50bad0c0e82da9c213968;p=netdata.git diff --git a/packaging/git-build b/packaging/git-build index e33d2355..56ae2166 100755 --- a/packaging/git-build +++ b/packaging/git-build @@ -13,6 +13,20 @@ fi # just make the assumption if [ -d .git ] then + if [ -n "$TRAVIS_TAG" ] + then + echo "Checking we have a good signature during CI build..." + echo "Checking tag: $TRAVIS_TAG" + git tag -v "$TRAVIS_TAG" 2>&1 | tee /tmp/tagcheck + grep -iq "gpg. good signature" /tmp/tagcheck + status=$? + rm -f /tmp/tagcheck + if [ $status -ne 0 ] + then + exit $status + fi + fi + clean=$(git status -s | grep "^?") if [ "$clean" ]