parent
98f06c9af6
commit
bea18d9b25
|
@ -1,13 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
SHA=$(git rev-parse --short HEAD)
|
|
||||||
BRANCH=$(git branch --no-color 2>/dev/null | grep '^*' | colrm 1 2)
|
|
||||||
BUCKET=download.elasticsearch.org
|
|
||||||
KEYPRE=elasticsearch/elasticsearch
|
|
||||||
|
|
||||||
for src in target/releases/elasticsearch-*.{deb,tar.gz,zip}; do
|
|
||||||
f=$(echo $src | perl -pe "s,(elasticsearch)-.*?\.(tar.gz|zip|deb)\$,\$1-$BRANCH.\$2,")
|
|
||||||
cmd="s3cmd put $src s3://$BUCKET/$KEYPRE/$(basename $f)"
|
|
||||||
echo $cmd
|
|
||||||
$cmd
|
|
||||||
done
|
|
Loading…
Reference in New Issue