-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix-tenant-error-page-skipped
- Loading branch information
Showing
3 changed files
with
81 additions
and
77 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,27 @@ | ||
#!/bin/sh | ||
|
||
npm run build | ||
set -e | ||
|
||
WORK_DIR="./local/cli" | ||
CONFIG_FILE="./config-cli-e2e.json" | ||
|
||
npm ci #Install all dependencies to allow for building | ||
npm run build | ||
npm ci --omit=dev #Remove dev dependencies | ||
|
||
TARBALL_PATH=$(npm pack) | ||
sudo npm install -g $TARBALL_PATH | ||
|
||
echo "{ | ||
\"AUTH0_DOMAIN\": \"$AUTH0_E2E_TENANT_DOMAIN\", | ||
\"AUTH0_CLIENT_ID\": \"$AUTH0_E2E_CLIENT_ID\", | ||
\"AUTH0_CLIENT_SECRET\": \"$AUTH0_E2E_CLIENT_SECRET\" | ||
}" > $CONFIG_FILE | ||
|
||
node lib/index.js export --env=false --output_folder=$WORK_DIR --format=yaml -c=$CONFIG_FILE | ||
a0deploy export --env=false --output_folder=$WORK_DIR --format=yaml -c=$CONFIG_FILE | ||
|
||
echo "-------- Beginning deploy/import phase --------" | ||
|
||
node lib/index.js import --env=false --input_file=$WORK_DIR --format=yaml -c=$CONFIG_FILE | ||
a0deploy import --env=false --input_file=$WORK_DIR --format=yaml -c=$CONFIG_FILE | ||
|
||
rm $CONFIG_FILE | ||
rm $TARBALL_PATH |