mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-16 09:54:55 +00:00
Add s3-publishing script.
This commit is contained in:
parent
5ed9fb2c54
commit
98f06c9af6
13
ci/publish-s3
Executable file
13
ci/publish-s3
Executable file
@ -0,0 +1,13 @@
|
||||
#!/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…
x
Reference in New Issue
Block a user