Skip to content

Commit 91d9d4a

Browse files
committed
Don't link the rc versions to latest when uploading the packages
1 parent c6c97ec commit 91d9d4a

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

release.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,15 @@ for filepath in `ls packages/*.{tar.gz,deb,rpm}`; do
5858
bucket=influxdb
5959

6060
AWS_CONFIG_FILE=~/aws.conf aws s3 cp $filepath s3://influxdb/$filename --acl public-read --region us-east-1
61-
AWS_CONFIG_FILE=~/aws.conf aws s3 cp $filepath s3://influxdb/${latest_filename} --acl public-read --region us-east-1
6261
AWS_CONFIG_FILE=~/aws.conf aws s3 cp $filepath s3://get.influxdb.org/$filename --acl public-read --region us-east-1
63-
AWS_CONFIG_FILE=~/aws.conf aws s3 cp $filepath s3://get.influxdb.org/${latest_filename} --acl public-read --region us-east-1
62+
63+
case "$version" in
64+
*rc*) continue;; # don't do upload the latest file
65+
*)
66+
AWS_CONFIG_FILE=~/aws.conf aws s3 cp $filepath s3://influxdb/${latest_filename} --acl public-read --region us-east-1
67+
AWS_CONFIG_FILE=~/aws.conf aws s3 cp $filepath s3://get.influxdb.org/${latest_filename} --acl public-read --region us-east-1
68+
;;
69+
esac
6470
done
6571

6672
branch=`git rev-parse --abbrev-ref HEAD`

0 commit comments

Comments
 (0)