druid/upload.sh
Xavier Léauté 2093187c91 rework tarball distribution:
- move assembly out of druid-services into a 'distribution' module
- create separate 'extensions-distribution' module and assembly to
  package extensions and their dependencies into a local maven
  repository
- include this extensions maven repository in the binaries tarball
2015-08-18 18:32:33 -07:00

22 lines
416 B
Bash
Executable File

#!/bin/bash -e
#
# Script to upload tarball of assembly build to static.druid.io for serving
#
if [ $# -lt 1 ]; then
echo "Usage: $0 <version>" >&2
exit 2
fi
VERSION=$1
TAR=druid-$VERSION-bin.tar.gz
S3PATH=s3://static.druid.io/artifacts/releases
if [ ! -z "`s3cmd ls "$S3PATH/$TAR"`" ]; then
echo "ERROR: Refusing to overwrite $S3PATH/$TAR" >&2
exit 2
fi
s3cmd put distribution/target/$TAR $S3PATH/$TAR