mirror of
https://github.com/hashicorp/packer.git
synced 2026-02-20 00:10:04 -05:00
Update generated scripts (website-start.sh)
This commit is contained in:
parent
b748490513
commit
27f6de3a61
1 changed files with 12 additions and 1 deletions
|
|
@ -12,6 +12,13 @@ PRODUCT=packer
|
|||
# Preview mode, controls the UI rendered (either the product site or developer). Can be `io` or `developer`
|
||||
PREVIEW_MODE=io
|
||||
|
||||
# Get the git branch of the commit that triggered the deploy preview
|
||||
# This will power remote image assets in local and deploy previews
|
||||
CURRENT_GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||
|
||||
# This is where content files live, relative to the website-preview dir. If omitted, "../content" will be used
|
||||
LOCAL_CONTENT_DIR=
|
||||
|
||||
should_pull=true
|
||||
|
||||
# Clone the dev-portal project, if needed
|
||||
|
|
@ -29,4 +36,8 @@ if [ "$should_pull" = true ]; then
|
|||
fi
|
||||
|
||||
# Run the dev-portal content-repo start script
|
||||
REPO=$PRODUCT PREVIEW_MODE=$PREVIEW_MODE npm run start:local-preview
|
||||
REPO=$PRODUCT \
|
||||
PREVIEW_FROM_REPO=$PRODUCT \
|
||||
LOCAL_CONTENT_DIR=$LOCAL_CONTENT_DIR \
|
||||
CURRENT_GIT_BRANCH=$CURRENT_GIT_BRANCH \
|
||||
npm run start:local-preview
|
||||
Loading…
Reference in a new issue