aboutsummaryrefslogtreecommitdiffstats
path: root/tag_push.sh
blob: c65517d8f8ea3b4b4961276afb0efe9f12a2f08b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

echo "ensure gpg password"
bindir=$(dirname "$0")
"$bindir/ensure_gpg_password.sh"

datetime=$(date +"%Y-%m-%d-%H-%M")
baseline=$(git describe --match "v*" --abbrev=0)
tagname=damon/next-$datetime-on-$baseline
echo "tagging as $tagname"
git tag -as "$tagname" -m "A snapshot of damon/next"
echo "push"
"$bindir/_push_tag.sh" "$tagname"