ci(docker): 在apt-get命令中添加更多容错选项
Some checks failed
Build docker and publish / build (20.15.1) (push) Failing after 27s

添加--allow-insecure-repositories、--allow-downgrades和--force-yes选项以提高包管理操作的容错性
This commit is contained in:
shanshanzhong 2025-10-22 06:27:20 -07:00
parent 3776b9137b
commit bc2856a23e

View File

@ -92,8 +92,8 @@ jobs:
fi
echo "仍在等待锁释放..."; sleep 5
done
apt-get update -y -o Dpkg::Lock::Timeout=600 --allow-unauthenticated
apt-get install -y -o Dpkg::Lock::Timeout=600 --allow-unauthenticated jq curl ca-certificates docker.io
apt-get update -y -o Dpkg::Lock::Timeout=600 --allow-unauthenticated --allow-insecure-repositories --allow-downgrades
apt-get install -y -o Dpkg::Lock::Timeout=600 --allow-unauthenticated --allow-insecure-repositories --allow-downgrades --force-yes jq curl ca-certificates docker.io
docker --version
jq --version
curl --version