ci(xpu): push latest tag and use 7-char SHA in nightly image tags (#27299)

This commit is contained in:
Jitendra Patil
2026-06-08 10:49:54 +08:00
committed by GitHub
parent 2d1856bf45
commit 12d47fa78b
@@ -23,7 +23,7 @@ jobs:
id: image_meta id: image_meta
run: | run: |
date_tag=$(date +%Y%m%d) date_tag=$(date +%Y%m%d)
commit_hash=$(git rev-parse --short=9 HEAD) commit_hash=$(git rev-parse --short=7 HEAD)
if [ -z "${commit_hash}" ]; then if [ -z "${commit_hash}" ]; then
echo "::error::Could not resolve commit hash" echo "::error::Could not resolve commit hash"
exit 1 exit 1
@@ -48,8 +48,10 @@ jobs:
--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 \
-t "intel/sglang-dev:${{ env.IMAGE_TAG }}" -t "intel/sglang-dev:${{ env.IMAGE_TAG }}" \
-t "intel/sglang-dev:latest"
- name: Push intel/sglang-dev - name: Push intel/sglang-dev
run: | run: |
docker push "intel/sglang-dev:${{ env.IMAGE_TAG }}" docker push "intel/sglang-dev:${{ env.IMAGE_TAG }}"
docker push "intel/sglang-dev:latest"