2014-09-19 15:44:04 +00:00
|
|
|
#!/bin/bash
|
2020-07-12 10:55:26 +00:00
|
|
|
if [ $# != "1" ]
|
|
|
|
then
|
|
|
|
echo "Usage: ./utils/releasetools/02_upload_tarball.sh <version_tag>"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2014-09-19 16:19:19 +00:00
|
|
|
echo "Uploading..."
|
2024-04-14 20:22:48 +00:00
|
|
|
scp /tmp/valkey-${1}.tar.gz ubuntu@host.redis.io:/var/www/download/releases/
|
2020-07-12 10:55:26 +00:00
|
|
|
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"
|
2014-10-09 09:26:32 +00:00
|
|
|
read x
|
2020-07-12 10:55:26 +00:00
|
|
|
ssh ubuntu@host.redis.io "cd /var/www/download;
|
2024-04-14 20:22:48 +00:00
|
|
|
rm -rf valkey-${1}.tar.gz;
|
2020-07-12 10:55:26 +00:00
|
|
|
wget http://download.redis.io/releases/redis-${1}.tar.gz;
|
|
|
|
tar xvzf redis-${1}.tar.gz;
|
2024-04-14 20:22:48 +00:00
|
|
|
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;
|
2020-07-12 10:55:26 +00:00
|
|
|
"
|