修改安装docker命令,切换为国内源
Some checks failed
Build Push and Deploy Image / build (push) Has been cancelled

This commit is contained in:
bamanker
2025-12-31 09:30:32 +08:00
parent d6b67b428b
commit 1f9029baf1

View File

@@ -37,14 +37,13 @@ jobs:
run: apt-get update && run: apt-get update &&
apt-get install -y gettext && apt-get install -y gettext &&
apt-get install -y maven && apt-get install -y maven &&
apt-get install -y docker.io &&
apt-get update && apt-get update &&
apt-get install ca-certificates curl && apt-get install ca-certificates curl &&
install -m 0755 -d /etc/apt/keyrings && install -m 0755 -d /etc/apt/keyrings &&
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc && curl -fsSL https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc &&
chmod a+r /etc/apt/keyrings/docker.asc && chmod a+r /etc/apt/keyrings/docker.asc &&
echo \ echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu \
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \ $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null && tee /etc/apt/sources.list.d/docker.list > /dev/null &&
apt-get update && apt-get update &&