Skip to content

Commit

Permalink
enhance: get environment variable from .env (milvus-io#34081)
Browse files Browse the repository at this point in the history
Signed-off-by: Liang Huang <sammy.huang@zilliz.com>
  • Loading branch information
yellow-shine committed Jun 23, 2024
1 parent e1b64e2 commit b77ab76
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/build_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ set -x

# Absolute path to the toplevel milvus directory.
toplevel=$(dirname "$(cd "$(dirname "${0}")"; pwd)")
if [[ -f "$toplevel/.env" ]]; then
set -a # automatically export all variables from .env
source $toplevel/.env
set +a # stop automatically exporting
fi

OS_NAME="${OS_NAME:-ubuntu20.04}"
MILVUS_IMAGE_REPO="${MILVUS_IMAGE_REPO:-milvusdb/milvus}"
Expand Down

0 comments on commit b77ab76

Please sign in to comment.