https://github.com/tendermint/tendermint
Raw File
Tip revision: 62fab24cdb6b3451d35d1082c86730aa7edd025a authored by William Banfield on 25 March 2022, 17:05:45 UTC
add mechanism to change the number of bytes sent to the application
Tip revision: 62fab24
push.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\" '/TMCoreSemVer =/ { 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 "==> Push 3 docker images with the following tags (latest, $TAG, $TAG_NO_PATCH)? y/n" -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
	docker push "tendermint/tendermint:latest"
	docker push "tendermint/tendermint:$TAG"
	docker push "tendermint/tendermint:$TAG_NO_PATCH"
fi
back to top