github.com/devwanda/aphelion-staking@v0.33.9/DOCKER/push.sh (about)

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