ci: route remaining package downloads to mirrors
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
registry=https://registry.npmmirror.com/
|
||||||
|
audit=false
|
||||||
|
fund=false
|
||||||
+1
-1
@@ -19,7 +19,7 @@ ENV HTTP_PROXY=${HTTP_PROXY} \
|
|||||||
https_proxy=${https_proxy} \
|
https_proxy=${https_proxy} \
|
||||||
no_proxy=${no_proxy}
|
no_proxy=${no_proxy}
|
||||||
|
|
||||||
COPY package*.json ./
|
COPY package*.json .npmrc ./
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|||||||
@@ -61,6 +61,15 @@ ensure_arm64_emulation() {
|
|||||||
wsl.exe -d "$WSL_DISTRO" -u root -- bash -lc '
|
wsl.exe -d "$WSL_DISTRO" -u root -- bash -lc '
|
||||||
set -e
|
set -e
|
||||||
if [ ! -x /usr/bin/qemu-aarch64-static ]; then
|
if [ ! -x /usr/bin/qemu-aarch64-static ]; then
|
||||||
|
for source_file in /etc/apt/sources.list /etc/apt/sources.list.d/*.sources; do
|
||||||
|
[ -f "$source_file" ] || continue
|
||||||
|
sed -i \
|
||||||
|
-e "s|deb.debian.org|mirrors.tuna.tsinghua.edu.cn|g" \
|
||||||
|
-e "s|security.debian.org/debian-security|mirrors.tuna.tsinghua.edu.cn/debian-security|g" \
|
||||||
|
-e "s|archive.ubuntu.com|mirrors.tuna.tsinghua.edu.cn|g" \
|
||||||
|
-e "s|security.ubuntu.com|mirrors.tuna.tsinghua.edu.cn|g" \
|
||||||
|
"$source_file"
|
||||||
|
done
|
||||||
apt-get update -qq
|
apt-get update -qq
|
||||||
apt-get install -y -qq qemu-user-static
|
apt-get install -y -qq qemu-user-static
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user