Browse Source

Fix docker scripts

pull/8161/head
Simon Kirillov 3 years ago
parent
commit
dede8d3438
2 changed files with 7 additions and 7 deletions
  1. +4
    -4
      DOCKER/build.sh
  2. +3
    -3
      DOCKER/push.sh

+ 4
- 4
DOCKER/build.sh View File

@ -6,15 +6,15 @@ if [ -z "$TAG" ]; then
TAG=$(awk -F\" '/TMVersionDefault =/ { print $2; exit }' < ../version/version.go)
fi
if [ -z "$TAG" ]; then
echo "Please specify a tag."
exit 1
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
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" .
docker build -f ./Dockerfile -t "tendermint/tendermint" -t "tendermint/tendermint:$TAG" -t "tendermint/tendermint:$TAG_NO_PATCH" ..
fi

+ 3
- 3
DOCKER/push.sh View File

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


Loading…
Cancel
Save