Simplify git clone code in CI test (#1422)

1. Simplify git clone code in CI test. 
2. Replace git clone branch in Dockerfile.

Signed-off-by: chensuyue <suyue.chen@intel.com>
This commit is contained in:
chen, suyue
2025-01-20 23:55:20 +08:00
committed by GitHub
parent 3d3ac59bfb
commit 0ba3decb6b
13 changed files with 122 additions and 16 deletions

View File

@@ -18,7 +18,7 @@ ray_port=8265
function build_docker_images() {
cd $WORKPATH/docker_image_build
if [ ! -d "GenAIComps" ] ; then
git clone https://github.com/opea-project/GenAIComps.git && cd GenAIComps && git checkout "${opea_branch:-"main"}" && cd ../
git clone --depth 1 --branch ${opea_branch:-"main"} https://github.com/opea-project/GenAIComps.git
fi
docker compose -f build.yaml build --no-cache > ${LOG_PATH}/docker_image_build.log
}
@@ -94,7 +94,7 @@ EOF
echo "[ $SERVICE_NAME ] Content is as expected."
fi
sleep 10m
sleep 1s
}
function stop_docker() {