mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-03 02:22:04 +00:00
* Ignore E2E and fuzz test folders
Signed-off-by: Thane Thomson <connect@thanethomson.com>
* Sync DOCS_README with main
Signed-off-by: Thane Thomson <connect@thanethomson.com>
* Sync docs versions with main
Signed-off-by: Thane Thomson <connect@thanethomson.com>
* Sync docs redirects with main
Signed-off-by: Thane Thomson <connect@thanethomson.com>
* Sync vuepress config with main
Signed-off-by: Thane Thomson <connect@thanethomson.com>
* Sync docs package-lock.json with main
Signed-off-by: Thane Thomson <connect@thanethomson.com>
* Update OpenAPI version to v0.33
Signed-off-by: Thane Thomson <connect@thanethomson.com>
* Update all docs/code on v0.33.x to reflect master to main change
Signed-off-by: Thane Thomson <connect@thanethomson.com>
* make format
Signed-off-by: Thane Thomson <connect@thanethomson.com>
* Fix linter errors
Signed-off-by: Thane Thomson <connect@thanethomson.com>
* Bump golangci-lint to latest version
Signed-off-by: Thane Thomson <connect@thanethomson.com>
* Update all docs.tendermint.com links to point to v0.33
Signed-off-by: Thane Thomson <connect@thanethomson.com>
* Reorder versions in nav to have latest on top
Signed-off-by: Thane Thomson <connect@thanethomson.com>
* Update README links to spec
Signed-off-by: Thane Thomson <connect@thanethomson.com>
* Add spec as of latest v0.33 release
The latest v0.33 release was
https://github.com/tendermint/tendermint/releases/tag/v0.33.9 on Nov 16,
2020.
The spec was copied across from the old spec repo as of this commit:
32b811a1fb
Signed-off-by: Thane Thomson <connect@thanethomson.com>
* Migrate spec links to GitHub repo from docs site
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
54 lines
1.6 KiB
Bash
Executable File
54 lines
1.6 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# Get the version from the environment, or try to figure it out.
|
|
if [ -z $VERSION ]; then
|
|
VERSION=$(awk -F\" 'TMCoreSemVer =/ { print $2; exit }' < version/version.go)
|
|
fi
|
|
if [ -z "$VERSION" ]; then
|
|
echo "Please specify a version."
|
|
exit 1
|
|
fi
|
|
echo "==> Releasing version $VERSION..."
|
|
|
|
# Get the parent directory of where this script is.
|
|
SOURCE="${BASH_SOURCE[0]}"
|
|
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
|
|
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
|
|
|
|
# Change into that dir because we expect that.
|
|
cd "$DIR"
|
|
|
|
# Building binaries
|
|
sh -c "'$DIR/scripts/dist.sh'"
|
|
|
|
# Pushing binaries to S3
|
|
sh -c "'$DIR/scripts/publish.sh'"
|
|
|
|
# echo "==> Crafting a Github release"
|
|
# today=$(date +"%B-%d-%Y")
|
|
# ghr -b "https://github.com/tendermint/tendermint/blob/main/CHANGELOG.md#${VERSION//.}-${today,}" "v$VERSION" "$DIR/build/dist"
|
|
|
|
# Build and push Docker image
|
|
|
|
## Get SHA256SUM of the linux archive
|
|
SHA256SUM=$(shasum -a256 "${DIR}/build/dist/tendermint_${VERSION}_linux_amd64.zip" | awk '{print $1;}')
|
|
|
|
## Replace TM_VERSION and TM_SHA256SUM with the new values
|
|
sed -i -e "s/TM_VERSION .*/TM_VERSION $VERSION/g" "$DIR/DOCKER/Dockerfile"
|
|
sed -i -e "s/TM_SHA256SUM .*/TM_SHA256SUM $SHA256SUM/g" "$DIR/DOCKER/Dockerfile"
|
|
git commit -m "update Dockerfile" -a "$DIR/DOCKER/Dockerfile"
|
|
echo "==> TODO: update DOCKER/README.md (latest Dockerfile's hash is $(git rev-parse HEAD)) and copy it's content to https://store.docker.com/community/images/tendermint/tendermint"
|
|
|
|
pushd "$DIR/DOCKER"
|
|
|
|
## Build Docker image
|
|
TAG=$VERSION sh -c "'./build.sh'"
|
|
|
|
## Push Docker image
|
|
TAG=$VERSION sh -c "'./push.sh'"
|
|
|
|
popd
|
|
|
|
exit 0
|