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

@@ -9,7 +9,7 @@ echo "WORKDIR=${WORKDIR}"
function get_genai_comps() {
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
}