Skip to content

Commit

Permalink
Define env var for docsearch API key in dev-docs build script (#6187)
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Apolinario <[email protected]>
Co-authored-by: Eduardo Apolinario <[email protected]>
  • Loading branch information
eapolinario and eapolinario authored Jan 31, 2025
1 parent 2d457df commit 618d940
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions script/local_build_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ if [ -n "$FLYTESNACKS_LOCAL_PATH" ]; then
DOCKER_ENV+=("--env" "FLYTESNACKS_LOCAL_PATH=/flytesnacks")
fi

if [ -n "$DOCSEARCH_API_KEY" ]; then
DOCKER_ENV+=("--env" "DOCSEARCH_API_KEY=$DOCSEARCH_API_KEY")
fi

DOCKER_CMD=("docker" "run" "--platform" "linux/amd64" "--rm" "--pull" "never" "${DOCKER_ENV[@]}" "${DOCKER_PORT_MAPPING[@]}" "${DOCKER_VOLUME_MAPPING[@]}" "flyte-dev-docs:latest" "${BUILD_CMD[@]}")

echo "${DOCKER_CMD[*]}"
Expand Down

0 comments on commit 618d940

Please sign in to comment.