Skip to content

Commit

Permalink
upadate release tool script to valkey (#239)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Shivshankar-Reddy authored Apr 14, 2024
1 parent e71be72 commit a4da212
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions utils/releasetools/01_create_tarball.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 7 additions & 7 deletions utils/releasetools/02_upload_tarball.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ then
fi

echo "Uploading..."
scp /tmp/redis-${1}.tar.gz [email protected]:/var/www/download/releases/
scp /tmp/valkey-${1}.tar.gz [email protected]:/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 [email protected] "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;
"
6 changes: 3 additions & 3 deletions utils/releasetools/03_test_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions utils/releasetools/04_release_hash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion utils/releasetools/changelog.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if {[llength $::argv] == 3} {

set template {
================================================================================
Redis %ver% Released %date%
Valkey %ver% Released %date%
================================================================================

Upgrade urgency <URGENCY>: <DESCRIPTION>
Expand Down

0 comments on commit a4da212

Please sign in to comment.