Skip to content

Commit 4052094

Browse files
committed
fix
1 parent 288ba0b commit 4052094

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Github/Runners/ubuntu-systemd-base.dockerfile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,15 @@ EOS
103103
##Install Docker
104104
RUN <<EOS
105105
#Install Docker
106-
rm -rf "/var/lib/apt/lists/"*
107-
cd "$(mktemp -d)" >/dev/null 2>&1
108-
curl -qfsSL "https://get.docker.com" -o "./get-docker.sh" && sh "./get-docker.sh"
109-
cd - >/dev/null 2>&1
106+
if [ "$(uname -m)" == "riscv64" ]; then
107+
apt update -y -qq
108+
apt install "docker.io" -y
109+
else
110+
rm -rf "/var/lib/apt/lists/"*
111+
cd "$(mktemp -d)" >/dev/null 2>&1
112+
curl -qfsSL "https://get.docker.com" -o "./get-docker.sh" && sh "./get-docker.sh"
113+
cd - >/dev/null 2>&1
114+
fi
110115
#Add runner to docker
111116
usermod -aG "docker" "runner"
112117
#Add Docker Completions

0 commit comments

Comments
 (0)