ci(xpu): checkout deadicated dir for night build (#27703)
This commit is contained in:
@@ -17,11 +17,13 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
path: sglang-nightly-build
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set date and commit hash
|
- name: Set date and commit hash
|
||||||
id: image_meta
|
id: image_meta
|
||||||
run: |
|
run: |
|
||||||
|
cd sglang-nightly-build
|
||||||
date_tag=$(date +%Y%m%d)
|
date_tag=$(date +%Y%m%d)
|
||||||
commit_hash=$(git rev-parse --short=7 HEAD)
|
commit_hash=$(git rev-parse --short=7 HEAD)
|
||||||
if [ -z "${commit_hash}" ]; then
|
if [ -z "${commit_hash}" ]; then
|
||||||
@@ -43,8 +45,8 @@ jobs:
|
|||||||
- name: Build intel/sglang-dev
|
- name: Build intel/sglang-dev
|
||||||
run: |
|
run: |
|
||||||
echo "Building intel/sglang-dev:${{ env.IMAGE_TAG }}"
|
echo "Building intel/sglang-dev:${{ env.IMAGE_TAG }}"
|
||||||
docker build . \
|
docker build sglang-nightly-build \
|
||||||
-f docker/xpu.Dockerfile \
|
-f sglang-nightly-build/docker/xpu.Dockerfile \
|
||||||
--build-arg SG_LANG_REPO=https://github.com/sgl-project/sglang.git \
|
--build-arg SG_LANG_REPO=https://github.com/sgl-project/sglang.git \
|
||||||
--build-arg SG_LANG_BRANCH=main \
|
--build-arg SG_LANG_BRANCH=main \
|
||||||
--no-cache --progress=plain \
|
--no-cache --progress=plain \
|
||||||
|
|||||||
Reference in New Issue
Block a user