From a4da212f11fa011856546e251b5a5bf94879a550 Mon Sep 17 00:00:00 2001 From: Shivshankar Date: Sun, 14 Apr 2024 16:22:48 -0400 Subject: [PATCH] upadate release tool script to valkey (#239) Updated release-tool scripts to valkey, This PR covered only the file names for the tarball but still location needs to be updated accordingly. Signed-off-by: Shivshankar-Reddy --- utils/releasetools/01_create_tarball.sh | 4 ++-- utils/releasetools/02_upload_tarball.sh | 14 +++++++------- utils/releasetools/03_test_release.sh | 6 +++--- utils/releasetools/04_release_hash.sh | 6 +++--- utils/releasetools/changelog.tcl | 2 +- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/utils/releasetools/01_create_tarball.sh b/utils/releasetools/01_create_tarball.sh index 366a61e2c..08fdcb6d1 100755 --- a/utils/releasetools/01_create_tarball.sh +++ b/utils/releasetools/01_create_tarball.sh @@ -6,9 +6,9 @@ then fi TAG=$1 -TARNAME="redis-${TAG}.tar" +TARNAME="valkey-${TAG}.tar" echo "Generating /tmp/${TARNAME}" -git archive $TAG --prefix redis-${TAG}/ > /tmp/$TARNAME || exit 1 +git archive $TAG --prefix valkey-${TAG}/ > /tmp/$TARNAME || exit 1 echo "Gizipping the archive" rm -f /tmp/$TARNAME.gz gzip -9 /tmp/$TARNAME diff --git a/utils/releasetools/02_upload_tarball.sh b/utils/releasetools/02_upload_tarball.sh index ef1e777cc..dcd94ef38 100755 --- a/utils/releasetools/02_upload_tarball.sh +++ b/utils/releasetools/02_upload_tarball.sh @@ -6,18 +6,18 @@ then fi echo "Uploading..." -scp /tmp/redis-${1}.tar.gz ubuntu@host.redis.io:/var/www/download/releases/ +scp /tmp/valkey-${1}.tar.gz ubuntu@host.redis.io:/var/www/download/releases/ echo "Updating web site... " echo "Please check the github action tests for the release." echo "Press any key if it is a stable release, or Ctrl+C to abort" read x ssh ubuntu@host.redis.io "cd /var/www/download; - rm -rf redis-${1}.tar.gz; + rm -rf valkey-${1}.tar.gz; wget http://download.redis.io/releases/redis-${1}.tar.gz; tar xvzf redis-${1}.tar.gz; - rm -rf redis-stable; - mv redis-${1} redis-stable; - tar cvzf redis-stable.tar.gz redis-stable; - rm -rf redis-${1}.tar.gz; - shasum -a 256 redis-stable.tar.gz > redis-stable.tar.gz.SHA256SUM; + rm -rf valkey-stable; + mv valkey-${1} valkey-stable; + tar cvzf valkey-stable.tar.gz valkey-stable; + rm -rf valkey-${1}.tar.gz; + shasum -a 256 valkey-stable.tar.gz > valkey-stable.tar.gz.SHA256SUM; " diff --git a/utils/releasetools/03_test_release.sh b/utils/releasetools/03_test_release.sh index 493d0b74c..2480d8cfd 100755 --- a/utils/releasetools/03_test_release.sh +++ b/utils/releasetools/03_test_release.sh @@ -7,7 +7,7 @@ then fi TAG=$1 -TARNAME="redis-${TAG}.tar.gz" +TARNAME="valkey-${TAG}.tar.gz" DOWNLOADURL="http://download.redis.io/releases/${TARNAME}" echo "Doing sanity test on the actual tarball" @@ -17,10 +17,10 @@ rm -rf test_release_tmp_dir mkdir test_release_tmp_dir cd test_release_tmp_dir rm -f $TARNAME -rm -rf redis-${TAG} +rm -rf valkey-${TAG} wget $DOWNLOADURL tar xvzf $TARNAME -cd redis-${TAG} +cd valkey-${TAG} make ./runtest ./runtest-sentinel diff --git a/utils/releasetools/04_release_hash.sh b/utils/releasetools/04_release_hash.sh index d93292803..8be286fab 100755 --- a/utils/releasetools/04_release_hash.sh +++ b/utils/releasetools/04_release_hash.sh @@ -6,8 +6,8 @@ then fi SHA=$(curl -s http://download.redis.io/releases/redis-${1}.tar.gz | shasum -a 256 | cut -f 1 -d' ') -ENTRY="hash redis-${1}.tar.gz sha256 $SHA http://download.redis.io/releases/redis-${1}.tar.gz" -echo $ENTRY >> ../redis-hashes/README +ENTRY="hash valkey-${1}.tar.gz sha256 $SHA http://download.redis.io/releases/redis-${1}.tar.gz" +echo $ENTRY >> ../valkey-hashes/README echo "Press any key to commit, Ctrl-C to abort)." read yes -(cd ../redis-hashes; git commit -a -m "${1} hash."; git push) +(cd ../valkey-hashes; git commit -a -m "${1} hash."; git push) diff --git a/utils/releasetools/changelog.tcl b/utils/releasetools/changelog.tcl index 2288794bb..e2f8d4364 100755 --- a/utils/releasetools/changelog.tcl +++ b/utils/releasetools/changelog.tcl @@ -15,7 +15,7 @@ if {[llength $::argv] == 3} { set template { ================================================================================ -Redis %ver% Released %date% +Valkey %ver% Released %date% ================================================================================ Upgrade urgency :