This repository was archived by the owner on Sep 18, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments