Commit d9e66044 authored by Jochen Kressin's avatar Jochen Kressin
Browse files

upload to filestack

parent e69ea59d
#!/bin/bash
PLUGIN_NAME=searchguard-kibana
PLUGIN_VERSION=5.3.1-3-SNAPSHOT
echo "Uploading ./releases/$PLUGIN_VERSION/$PLUGIN_NAME-$PLUGIN_VERSION.zip"
cresponse=$(curl --write-out %{http_code} --silent --output uploadresult -X POST -F fileUpload=@./releases/$PLUGIN_VERSION/$PLUGIN_NAME-$PLUGIN_VERSION.zip 'https://www.filestackapi.com/api/store/S3?key=Aa30JUUJZQ4i5UPcU5BUHz')
response="$(echo "$cresponse" | cut -c1-3)"
if ! [[ $response == "200" ]] ; then
echo "Upload failed with status $response"
exit 1
fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment