Skip to content
This repository was archived by the owner on Sep 18, 2020. It is now read-only.

Commit b43e7ba

Browse files
committed
build: change tag_release into a full release
This changes the tag_release program so that it tags and then actually does a full release build.
1 parent 1587f84 commit b43e7ba

2 files changed

Lines changed: 32 additions & 24 deletions

File tree

release.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
[ $# == 1 ] || { echo "usage: $0 version" && exit 1; }
6+
7+
VER=$1
8+
9+
[[ "${VER}" =~ ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$ ]] || {
10+
echo "malformed version: \"${VER}\""
11+
exit 2
12+
}
13+
14+
if test -n "$(git ls-files --others | \
15+
grep --invert-match '\(gopath/src/github.com/coreos/container-linux-config-transpiler\|bin/ct\)')";
16+
then
17+
echo "directory has untracked files"
18+
exit 1
19+
fi
20+
21+
if ! $(git diff-index --quiet HEAD --); then
22+
echo "directory has uncommitted files"
23+
exit 1
24+
fi
25+
26+
make test
27+
28+
git tag --sign --message "Config-Transpiler ${VER}" "${VER}"
29+
30+
git verify-tag --verbose "${VER}"
31+
32+
make release

tag_release.sh

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)