]> arthur.barton.de Git - netdata.git/blobdiff - packaging/git-build
Travis signature checking, deployment to github and firehol.org
[netdata.git] / packaging / git-build
index e33d2355c618eee9811ab6fef1afba970e040f27..56ae21664ab50f5a2bb5e1842294033fd1c3c619 100755 (executable)
@@ -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" ]