Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update publish script #6012

Merged
merged 1 commit into from
Apr 5, 2018
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
10 changes: 5 additions & 5 deletions scripts/ci/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
set -e

unset AZURE_CLI_DIAGNOSTICS_TELEMETRY
pip install azure-storage==0.36.0
pip install azure-storage-blob==1.1.0

wd=`cd $(dirname $0); pwd`

if [ -z $PUBLISH_STORAGE_SAS ] || [ -z $PUBLISH_STORAGE_ACCT ] || [ -z $PUBLISH_CONTAINER ]; then
if [ -z "$PUBLISH_STORAGE_SAS" ] || [ -z "$PUBLISH_STORAGE_ACCT" ] || [ -z "$PUBLISH_CONTAINER" ]; then
echo 'Missing publish storage account credential. Skip publishing to store.'
exit 0
fi
Expand All @@ -16,13 +16,13 @@ echo 'Generate artifacts'
. $wd/artifacts.sh

echo 'Upload artifacts to store'
python $wd/publish.py store -b $share_folder -c $PUBLISH_CONTAINER -a $PUBLISH_STORAGE_ACCT -s $PUBLISH_STORAGE_SAS
python $wd/publish.py store -b $share_folder -c $PUBLISH_CONTAINER -a $PUBLISH_STORAGE_ACCT -s "$PUBLISH_STORAGE_SAS"

if [ -z $EDGE_STORAGE_SAS ] || [ -z $EDGE_STORAGE_ACCT ] || [ -z $EDGE_CONTAINER ]; then
if [ -z "$EDGE_STORAGE_SAS" ] || [ -z "$EDGE_STORAGE_ACCT" ] || [ -z "$EDGE_CONTAINER" ]; then
echo 'Missing edge storage account credential. Skip publishing the edge build.'
exit 0
fi

echo 'Upload artifacts to edge feed'
python $wd/publish.py nightly -b $share_folder -c $EDGE_CONTAINER -a $EDGE_STORAGE_ACCT -s $EDGE_STORAGE_SAS
python $wd/publish.py nightly -b $share_folder -c $EDGE_CONTAINER -a $EDGE_STORAGE_ACCT -s "$EDGE_STORAGE_SAS"