[CI] add container naming and cleanup logic in workflows (#3655)

This commit is contained in:
YuBaoku
2025-08-27 21:51:56 +08:00
committed by GitHub
parent 80db7fce05
commit 47e6270dec
4 changed files with 29 additions and 3 deletions

View File

@@ -108,7 +108,15 @@ jobs:
echo "==== PORT CLEAN COMPLETE ====" | tee -a $LOG_FILE
docker run --ipc=host --pid=host --net=host \
echo "========================================================="
echo "Ensuring no stale container named ${runner_name} ..."
if [ "$(docker ps -a -q -f name=${runner_name})" ]; then
echo "Removing stale container: ${runner_name}"
docker rm -f ${runner_name} || true
fi
docker run --rm --ipc=host --pid=host --net=host \
--name ${runner_name} \
-v $(pwd):/workspace \
-w /workspace \
-e fastdeploy_wheel_url=${fastdeploy_wheel_url} \