File tree 6 files changed +37
-7
lines changed
6 files changed +37
-7
lines changed Original file line number Diff line number Diff line change 74
74
cd ${{ github.workspace }}/${{ inputs.example }}/docker_image_build
75
75
docker_compose_path=${{ github.workspace }}/${{ inputs.example }}/docker_image_build/build.yaml
76
76
if [[ $(grep -c "vllm:" ${docker_compose_path}) != 0 ]]; then
77
- git clone --depth 1 https://github.com/vllm-project/vllm.git
78
- cd vllm && git rev-parse HEAD && cd ../
77
+ git clone https://github.com/vllm-project/vllm.git && cd vllm
78
+ # Get the latest tag
79
+ VLLM_VER="$(git describe --tags "$(git rev-list --tags --max-count=1)" )"
80
+ echo "Check out vLLM tag ${VLLM_VER}"
81
+ git checkout ${VLLM_VER} &> /dev/null
82
+ # make sure do not change the pwd
83
+ git rev-parse HEAD && cd ../
79
84
fi
80
85
if [[ $(grep -c "vllm-gaudi:" ${docker_compose_path}) != 0 ]]; then
81
86
git clone --depth 1 --branch v0.6.4.post2+Gaudi-1.19.0 https://github.com/HabanaAI/vllm-fork.git
Original file line number Diff line number Diff line change @@ -29,7 +29,12 @@ function build_docker_images() {
29
29
30
30
cd $WORKPATH /docker_image_build
31
31
git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git
32
- git clone --depth 1 https://github.com/vllm-project/vllm.git
32
+ git clone https://github.com/vllm-project/vllm.git && cd vllm
33
+ VLLM_VER=" $( git describe --tags " $( git rev-list --tags --max-count=1) " ) "
34
+ echo " Check out vLLM tag ${VLLM_VER} "
35
+ git checkout ${VLLM_VER} & > /dev/null
36
+ # make sure NOT change the pwd
37
+ cd ../
33
38
34
39
echo " Build all the images with --no-cache, check docker_image_build.log for details..."
35
40
service_list=" chatqna chatqna-ui dataprep retriever vllm nginx"
Original file line number Diff line number Diff line change @@ -29,7 +29,12 @@ function build_docker_images() {
29
29
30
30
cd $WORKPATH /docker_image_build
31
31
git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git
32
- git clone --depth 1 https://github.com/vllm-project/vllm.git
32
+ git clone https://github.com/vllm-project/vllm.git && cd vllm
33
+ VLLM_VER=" $( git describe --tags " $( git rev-list --tags --max-count=1) " ) "
34
+ echo " Check out vLLM tag ${VLLM_VER} "
35
+ git checkout ${VLLM_VER} & > /dev/null
36
+ # Not change the pwd
37
+ cd ../
33
38
34
39
echo " Build all the images with --no-cache, check docker_image_build.log for details..."
35
40
service_list=" chatqna chatqna-ui dataprep retriever vllm nginx"
Original file line number Diff line number Diff line change @@ -29,7 +29,12 @@ function build_docker_images() {
29
29
30
30
cd $WORKPATH /docker_image_build
31
31
git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git
32
- git clone --depth 1 https://github.com/vllm-project/vllm.git
32
+ git clone https://github.com/vllm-project/vllm.git && cd vllm
33
+ VLLM_VER=" $( git describe --tags " $( git rev-list --tags --max-count=1) " ) "
34
+ echo " Check out vLLM tag ${VLLM_VER} "
35
+ git checkout ${VLLM_VER} & > /dev/null
36
+ # Not change the pwd
37
+ cd ../
33
38
34
39
echo " Build all the images with --no-cache, check docker_image_build.log for details..."
35
40
service_list=" chatqna chatqna-ui dataprep retriever vllm nginx"
Original file line number Diff line number Diff line change @@ -29,7 +29,13 @@ function build_docker_images() {
29
29
30
30
cd $WORKPATH /docker_image_build
31
31
git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git
32
- git clone --depth 1 https://github.com/vllm-project/vllm.git
32
+ git clone https://github.com/vllm-project/vllm.git && cd vllm
33
+ # Get the latest tag
34
+ VLLM_VER=" $( git describe --tags " $( git rev-list --tags --max-count=1) " ) "
35
+ echo " Check out vLLM tag ${VLLM_VER} "
36
+ git checkout ${VLLM_VER} & > /dev/null
37
+ # Not change the pwd
38
+ cd ../
33
39
34
40
echo " Build all the images with --no-cache, check docker_image_build.log for details..."
35
41
service_list=" chatqna-without-rerank chatqna-ui dataprep retriever vllm nginx"
Original file line number Diff line number Diff line change @@ -18,7 +18,11 @@ function build_vllm_docker_image() {
18
18
echo $WORKPATH
19
19
if [ ! -d " ./vllm" ]; then
20
20
git clone https://github.com/vllm-project/vllm.git
21
- cd ./vllm; git checkout tags/v0.6.0
21
+ cd vllm
22
+ VLLM_VER=" $( git describe --tags " $( git rev-list --tags --max-count=1) " ) "
23
+ echo " Check out vLLM tag ${VLLM_VER} "
24
+ git checkout ${VLLM_VER} & > /dev/null
25
+ git rev-parse HEAD
22
26
else
23
27
cd ./vllm
24
28
fi
You can’t perform that action at this time.
0 commit comments