diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 22:40:55 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 22:40:55 +0100 |
| commit | 5d8dfe892a2ea89f706ee140c3bdcfd89fe03fda (patch) | |
| tree | 1acdfa5220cd13b7be43a2a01368e80d306473ca /examples/redis-unstable/utils/releasetools/02_upload_tarball.sh | |
| parent | c7ab12bba64d9c20ccd79b132dac475f7bc3923e (diff) | |
| download | crep-5d8dfe892a2ea89f706ee140c3bdcfd89fe03fda.tar.gz | |
Add Redis source code for testing
Diffstat (limited to 'examples/redis-unstable/utils/releasetools/02_upload_tarball.sh')
| -rwxr-xr-x | examples/redis-unstable/utils/releasetools/02_upload_tarball.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/redis-unstable/utils/releasetools/02_upload_tarball.sh b/examples/redis-unstable/utils/releasetools/02_upload_tarball.sh new file mode 100755 index 0000000..ef1e777 --- /dev/null +++ b/examples/redis-unstable/utils/releasetools/02_upload_tarball.sh | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | if [ $# != "1" ] | ||
| 3 | then | ||
| 4 | echo "Usage: ./utils/releasetools/02_upload_tarball.sh <version_tag>" | ||
| 5 | exit 1 | ||
| 6 | fi | ||
| 7 | |||
| 8 | echo "Uploading..." | ||
| 9 | scp /tmp/redis-${1}.tar.gz ubuntu@host.redis.io:/var/www/download/releases/ | ||
| 10 | echo "Updating web site... " | ||
| 11 | echo "Please check the github action tests for the release." | ||
| 12 | echo "Press any key if it is a stable release, or Ctrl+C to abort" | ||
| 13 | read x | ||
| 14 | ssh ubuntu@host.redis.io "cd /var/www/download; | ||
| 15 | rm -rf redis-${1}.tar.gz; | ||
| 16 | wget http://download.redis.io/releases/redis-${1}.tar.gz; | ||
| 17 | tar xvzf redis-${1}.tar.gz; | ||
| 18 | rm -rf redis-stable; | ||
| 19 | mv redis-${1} redis-stable; | ||
| 20 | tar cvzf redis-stable.tar.gz redis-stable; | ||
| 21 | rm -rf redis-${1}.tar.gz; | ||
| 22 | shasum -a 256 redis-stable.tar.gz > redis-stable.tar.gz.SHA256SUM; | ||
| 23 | " | ||
