summaryrefslogtreecommitdiff
path: root/scripts/verify-tag
blob: ddc3ff3b902f0a84c86ee25542f893a98eacf8d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

export GNUPGHOME=/etc/metadata/gnupg
mkdir -p $GNUPGHOME
export GPG=gpg

git config --global gpg.program gpg

tag=$(git tag -l "md-[0-9]*" | sort | tail -1)
if [ -z "$tag" ]; then
   echo "no matching tag found"
   exit 1
fi
git checkout $tag && git tag -v $tag