You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
540 B

  1. #!/usr/bin/env bash
  2. set -e
  3. # Get the tag from the version, or try to figure it out.
  4. if [ -z "$TAG" ]; then
  5. TAG=$(awk -F\" '/TMCoreSemVer =/ { print $2; exit }' < ../version/version.go)
  6. fi
  7. if [ -z "$TAG" ]; then
  8. echo "Please specify a tag."
  9. exit 1
  10. fi
  11. TAG_NO_PATCH=${TAG%.*}
  12. read -p "==> Build 3 docker images with the following tags (latest, $TAG, $TAG_NO_PATCH)? y/n" -n 1 -r
  13. echo
  14. if [[ $REPLY =~ ^[Yy]$ ]]
  15. then
  16. docker build -t "tendermint/tendermint" -t "tendermint/tendermint:$TAG" -t "tendermint/tendermint:$TAG_NO_PATCH" .
  17. fi