ci(docker): 添加--allow-unauthenticated参数以绕过认证
Some checks failed
Build docker and publish / build (20.15.1) (push) Failing after 25s

在apt-get命令中添加--allow-unauthenticated参数,避免在某些环境下因认证问题导致安装失败
This commit is contained in:
shanshanzhong 2025-10-22 06:24:23 -07:00
parent 7731384ccb
commit 3776b9137b

View File

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