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 <shiva.sheri.github@gmail.com>
This commit is contained in:
Shivshankar 2024-04-14 16:22:48 -04:00 committed by GitHub
parent e71be72745
commit a4da212f11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 16 additions and 16 deletions

View File

@ -6,9 +6,9 @@ then
fi fi
TAG=$1 TAG=$1
TARNAME="redis-${TAG}.tar" TARNAME="valkey-${TAG}.tar"
echo "Generating /tmp/${TARNAME}" 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" echo "Gizipping the archive"
rm -f /tmp/$TARNAME.gz rm -f /tmp/$TARNAME.gz
gzip -9 /tmp/$TARNAME gzip -9 /tmp/$TARNAME

View File

@ -6,18 +6,18 @@ then
fi fi
echo "Uploading..." 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 "Updating web site... "
echo "Please check the github action tests for the release." 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" echo "Press any key if it is a stable release, or Ctrl+C to abort"
read x read x
ssh ubuntu@host.redis.io "cd /var/www/download; 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; wget http://download.redis.io/releases/redis-${1}.tar.gz;
tar xvzf redis-${1}.tar.gz; tar xvzf redis-${1}.tar.gz;
rm -rf redis-stable; rm -rf valkey-stable;
mv redis-${1} redis-stable; mv valkey-${1} valkey-stable;
tar cvzf redis-stable.tar.gz redis-stable; tar cvzf valkey-stable.tar.gz valkey-stable;
rm -rf redis-${1}.tar.gz; rm -rf valkey-${1}.tar.gz;
shasum -a 256 redis-stable.tar.gz > redis-stable.tar.gz.SHA256SUM; shasum -a 256 valkey-stable.tar.gz > valkey-stable.tar.gz.SHA256SUM;
" "

View File

@ -7,7 +7,7 @@ then
fi fi
TAG=$1 TAG=$1
TARNAME="redis-${TAG}.tar.gz" TARNAME="valkey-${TAG}.tar.gz"
DOWNLOADURL="http://download.redis.io/releases/${TARNAME}" DOWNLOADURL="http://download.redis.io/releases/${TARNAME}"
echo "Doing sanity test on the actual tarball" echo "Doing sanity test on the actual tarball"
@ -17,10 +17,10 @@ rm -rf test_release_tmp_dir
mkdir test_release_tmp_dir mkdir test_release_tmp_dir
cd test_release_tmp_dir cd test_release_tmp_dir
rm -f $TARNAME rm -f $TARNAME
rm -rf redis-${TAG} rm -rf valkey-${TAG}
wget $DOWNLOADURL wget $DOWNLOADURL
tar xvzf $TARNAME tar xvzf $TARNAME
cd redis-${TAG} cd valkey-${TAG}
make make
./runtest ./runtest
./runtest-sentinel ./runtest-sentinel

View File

@ -6,8 +6,8 @@ then
fi fi
SHA=$(curl -s http://download.redis.io/releases/redis-${1}.tar.gz | shasum -a 256 | cut -f 1 -d' ') 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" ENTRY="hash valkey-${1}.tar.gz sha256 $SHA http://download.redis.io/releases/redis-${1}.tar.gz"
echo $ENTRY >> ../redis-hashes/README echo $ENTRY >> ../valkey-hashes/README
echo "Press any key to commit, Ctrl-C to abort)." echo "Press any key to commit, Ctrl-C to abort)."
read yes read yes
(cd ../redis-hashes; git commit -a -m "${1} hash."; git push) (cd ../valkey-hashes; git commit -a -m "${1} hash."; git push)

View File

@ -15,7 +15,7 @@ if {[llength $::argv] == 3} {
set template { set template {
================================================================================ ================================================================================
Redis %ver% Released %date% Valkey %ver% Released %date%
================================================================================ ================================================================================
Upgrade urgency <URGENCY>: <DESCRIPTION> Upgrade urgency <URGENCY>: <DESCRIPTION>