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

This commit is contained in:
YuBaoku
2025-08-22 11:42:57 +08:00
committed by GitHub
parent 2630260616
commit cc88671507
6 changed files with 51 additions and 1 deletions

View File

@@ -108,7 +108,15 @@ jobs:
echo "==== PORT CLEAN COMPLETE ====" | tee -a $LOG_FILE
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} \