Skip to content

Commit

Permalink
Update UI scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartleeks committed Aug 3, 2022
1 parent f0026db commit 797e791
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions devops/scripts/build_deploy_ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ set -o errexit
set -o pipefail
set -o nounset

pushd ./ui/app
# Get the directory that this script is in
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

pushd "$DIR/../../ui/app"

# replace the values in the config file
jq --arg rootClientId "${SWAGGER_UI_CLIENT_ID}" \
Expand All @@ -18,4 +21,4 @@ yarn build

popd

DIR=./ui/app/build ./devops/scripts/upload_static_web.sh
CONTENT_DIR="$DIR/../../ui/app/build" "$DIR/upload_static_web.sh"
4 changes: 2 additions & 2 deletions devops/scripts/upload_static_web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ echo "Waiting for network rule to take effect"
sleep 30s
echo "Created network rule on storage account"

echo "Uploading ${DIR} to static web storage"
echo "Uploading ${CONTENT_DIR} to static web storage"

# shellcheck disable=SC2016
az storage blob upload-batch \
--account-name "${STORAGE_ACCOUNT}" \
--auth-mode login \
--destination '$web' \
--source "${DIR}" \
--source "${CONTENT_DIR}" \
--no-progress \
--only-show-errors \
--overwrite
Expand Down

0 comments on commit 797e791

Please sign in to comment.