mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 06:42:16 +00:00
* fix build scripts Search for the right variable when introspecting Go code. `Version` was renamed to `TMCoreSemVer`. This is regression introduced in b95ac688af14d130e6ad0b580ed9a8181f6c487c * fix all `Version` introspections. Use `TMCoreSemVer` instead of `Version`
23 lines
559 B
Bash
Executable File
23 lines
559 B
Bash
Executable File
#!/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
|