未验证 提交 5c819514 编写于 作者: Q quicksilver 提交者: GitHub

Add the arguments of skip build Milvus image in e2e-k8s.sh (#6947)

Signed-off-by: Nquicksilver <zhifeng.zhang@zilliz.com>
上级 4d5eeb28
......@@ -85,6 +85,10 @@ while (( "$#" )); do
SKIP_BUILD=true
shift
;;
--skip-build-image)
SKIP_BUILD_IMAGE=true
shift
;;
--skip-test)
SKIP_TEST=true
shift
......@@ -150,7 +154,9 @@ Usage:
--skip-cleanup Skip cleanup KinD cluster
--skip-build Skip build Milvus image
--skip-build Skip build Milvus binary
--skip-build-image Skip build Milvus image
--skip-test Skip e2e test
......@@ -205,12 +211,6 @@ export SINGLE_CLUSTER_NAME="${SINGLE_CLUSTER_NAME:-kind}"
export HUB="${HUB:-milvusdb}"
export TAG="${TAG:-latest}"
# If we're not intending to pull from an actual remote registry, use the local kind registry
if [[ -z "${SKIP_BUILD:-}" ]]; then
HUB="${KIND_REGISTRY}"
export HUB
fi
export CI="true"
if [[ ! -d "${ARTIFACTS}" ]];then
......@@ -275,12 +275,23 @@ if [[ -z "${SKIP_SETUP:-}" ]]; then
fi
if [[ -z "${SKIP_BUILD:-}" ]]; then
trace "setup kind registry" setup_kind_registry
pushd "${ROOT}"
trace "build milvus" "${ROOT}/build/builder.sh" /bin/bash -c "${BUILD_COMMAND}"
popd
fi
if [[ -z "${SKIP_BUILD_IMAGE:-}" ]]; then
# If we're not intending to pull from an actual remote registry, use the local kind registry
running="$(docker inspect -f '{{.State.Running}}' "${KIND_REGISTRY_NAME}" 2>/dev/null || true)"
if [[ "${running}" == 'true' ]]; then
HUB="${KIND_REGISTRY}"
export HUB
fi
export MILVUS_IMAGE_REPO="${HUB}/milvus"
export MILVUS_IMAGE_TAG="${TAG}"
trace "setup kind registry" setup_kind_registry
pushd "${ROOT}"
trace "build milvus" "${ROOT}/build/builder.sh" /bin/bash -c "${BUILD_COMMAND}"
trace "build milvus image" "${ROOT}/build/build_image.sh"
trace "push milvus image" docker push "${MILVUS_IMAGE_REPO}:${MILVUS_IMAGE_TAG}"
popd
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册