Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions build/cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,23 @@ function build_and_upload() {
rm cortex
}

function build_python {
pushd $ROOT/pkg/workloads/cortex/client
python setup.py sdist

if [ "$upload" == "true" ]; then
echo "Uploading Cortex CLI to s3://$CLI_BUCKET_NAME/$CORTEX_VERSION/python/cortex-$CORTEX_VERSION.tar.gz"
aws s3 cp dist/cortex-$CORTEX_VERSION.tar.gz s3://$CLI_BUCKET_NAME/$CORTEX_VERSION/python/cortex-$CORTEX_VERSION.tar.gz
fi

rm -rf dist/
rm -rf cortex.egg-info/

popd
}

build_and_upload darwin

build_and_upload linux

build_python