|
@ -6,15 +6,15 @@ if [ -z "$TAG" ]; then |
|
|
TAG=$(awk -F\" '/TMVersionDefault =/ { print $2; exit }' < ../version/version.go) |
|
|
TAG=$(awk -F\" '/TMVersionDefault =/ { print $2; exit }' < ../version/version.go) |
|
|
fi |
|
|
fi |
|
|
if [ -z "$TAG" ]; then |
|
|
if [ -z "$TAG" ]; then |
|
|
echo "Please specify a tag." |
|
|
|
|
|
exit 1 |
|
|
|
|
|
|
|
|
echo "Please specify a tag." |
|
|
|
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
TAG_NO_PATCH=${TAG%.*} |
|
|
TAG_NO_PATCH=${TAG%.*} |
|
|
|
|
|
|
|
|
read -p "==> Build 3 docker images with the following tags (latest, $TAG, $TAG_NO_PATCH)? y/n" -n 1 -r |
|
|
|
|
|
|
|
|
read -p "==> Build 3 docker images with the following tags (latest, $TAG, $TAG_NO_PATCH)? [y/N] " -n 1 -r |
|
|
echo |
|
|
echo |
|
|
if [[ $REPLY =~ ^[Yy]$ ]] |
|
|
if [[ $REPLY =~ ^[Yy]$ ]] |
|
|
then |
|
|
then |
|
|
docker build -t "tendermint/tendermint" -t "tendermint/tendermint:$TAG" -t "tendermint/tendermint:$TAG_NO_PATCH" . |
|
|
|
|
|
|
|
|
docker build -f ./Dockerfile -t "tendermint/tendermint" -t "tendermint/tendermint:$TAG" -t "tendermint/tendermint:$TAG_NO_PATCH" .. |
|
|
fi |
|
|
fi |