scripts/release: logging release version

Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
This commit is contained in:
Gyuho Lee
2020-08-18 11:45:15 -07:00
parent fd9a5b0be5
commit bdd57848dc

View File

@@ -86,6 +86,9 @@ main() {
echo "Wrong etcd version in version/version.go. Expected ${etcd_version} but got ${VERSION}. Aborting."
exit 1
fi
echo "bin/etcd --version:"
bin/etcd --version
sleep 3
if [[ ! -z $(git status -s) ]]; then
echo "Committing version/version.go update."
@@ -152,6 +155,9 @@ main() {
# Sanity checks.
./release/etcd-${RELEASE_VERSION}-$(go env GOOS)-amd64/etcd --version | grep -q "etcd Version: ${VERSION}" || true
./release/etcd-${RELEASE_VERSION}-$(go env GOOS)-amd64/etcdctl version | grep -q "etcdctl version: ${VERSION}" || true
echo "./release/etcd-${RELEASE_VERSION}-$(go env GOOS)-amd64/etcd --version:"
./release/etcd-${RELEASE_VERSION}-$(go env GOOS)-amd64/etcd --version
sleep 3
# Upload artifacts.
if [ "${NO_UPLOAD}" == 1 ]; then