Merge branch 'master' into assets
This commit is contained in:
commit
bd7ea539bc
@ -34,13 +34,17 @@ if [ "$RELEASE" == "true" ]; then
|
||||
# Only allow releases of tagged versions.
|
||||
TAGGED='^v[0-9]+\.[0-9]+\.[0-9]+(-(alpha|beta)[0-9]*)?$'
|
||||
if [[ ! "$version" =~ $TAGGED ]]; then
|
||||
echo "Only tagged versions are allowed for releases" >&2
|
||||
echo "Error: Only tagged versions are allowed for releases" >&2
|
||||
echo "Found: $version" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Don't include hostname with release builds
|
||||
build_user="$(git config --get user.email)"
|
||||
if ! build_user="$(git config --get user.email)"; then
|
||||
echo "Error: git user not set, use:"
|
||||
echo "git config user.email <email>"
|
||||
exit 1
|
||||
fi
|
||||
build_date=$( date +%Y%m%d ) # Release date is only to day-granularity
|
||||
|
||||
# Don't use cached build objects for releases.
|
||||
|
@ -24,6 +24,7 @@ set -e
|
||||
GO_FLAGS="-race" ./build/build.sh
|
||||
|
||||
TEST_PID=$$
|
||||
sudo printf "" # Refresh sudo credentials if necessary.
|
||||
function start {
|
||||
set +e # We want to handle errors if cAdvisor crashes.
|
||||
echo ">> starting cAdvisor locally"
|
||||
|
Loading…
Reference in New Issue
Block a user