ci(xpu): harden nightly + PR XPU CI (HF login / tag fetch / docker push retries) (#32390)

This commit is contained in:
ashwini rathi
2026-08-06 08:25:53 +08:00
committed by GitHub
parent 3869fe556f
commit ae5f8c94b7
3 changed files with 52 additions and 5 deletions
@@ -55,5 +55,13 @@ jobs:
- name: Push intel/sglang-dev
run: |
docker push "intel/sglang-dev:${{ env.IMAGE_TAG }}"
docker push "intel/sglang-dev:latest"
push_with_retry() {
for i in 1 2 3 4 5; do
docker push "$1" && return 0
echo "push failed (attempt $i), retrying in $((i*15))s..."
sleep $((i*15))
done
return 1
}
push_with_retry "intel/sglang-dev:${{ env.IMAGE_TAG }}"
push_with_retry "intel/sglang-dev:latest"