https://github.com/tendermint/tendermint
Raw File
Tip revision: c7f923c5b0d0f0f26566281aa251259d1bef3a6c authored by Ethan Buchman on 28 November 2017, 04:36:52 UTC
Merge pull request #903 from tendermint/hotfix-v0.12.1
Tip revision: c7f923c
build.sh
#!/usr/bin/env bash
set -e

# Get the tag from the version, or try to figure it out.
if [ -z "$TAG" ]; then
	TAG=$(awk -F\" '/Version =/ { print $2; exit }' < ../version/version.go)
fi
if [ -z "$TAG" ]; then
		echo "Please specify a tag."
		exit 1
fi

TAG_NO_PATCH=${TAG%.*}

read -p "==> Build 3 docker images with the following tags (latest, $TAG, $TAG_NO_PATCH)? y/n" -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
		docker build -t "tendermint/tendermint" -t "tendermint/tendermint:$TAG" -t "tendermint/tendermint:$TAG_NO_PATCH" .
fi
back to top