Files
opensearch-pyd/.ci/make.sh
T
github-actions[bot] 21f25419eb [7.x] Change 'make.sh release' to 'make.sh assemble'
Co-authored-by: Seth Michael Larson <seth.larson@elastic.co>
2020-11-10 13:45:05 -06:00

19 lines
512 B
Bash
Executable File

#!/bin/bash
set -eo pipefail
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
BASE_DIR="$( dirname "$BASE_DIR" )"
if [[ "$1" == "assemble" ]]; then
mkdir -p $BASE_DIR/.ci/output
docker build . --tag elastic/elasticsearch-py -f .ci/Dockerfile
docker run --rm -it -v $BASE_DIR/.ci/output:/code/elasticsearch-py/dist \
elastic/elasticsearch-py \
python /code/elasticsearch-py/utils/build-dists.py $2
exit 0
fi
echo "Must be called with '.ci/make.sh [command]"
exit 1