CI: use npm China mirror + host network for build
Deploy Dashboard / deploy (push) Failing after 2m49s

This commit is contained in:
Gan, Jimmy
2026-02-25 04:18:25 +08:00
parent ecff8652e1
commit 7b9747f7b7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -17,6 +17,6 @@ jobs:
- name: Checkout - name: Checkout
run: git clone --depth 1 http://gitea:3000/jimmy/nas-tools.git . run: git clone --depth 1 http://gitea:3000/jimmy/nas-tools.git .
- name: Build - name: Build
run: DOCKER_BUILDKIT=0 docker build -t nas-dashboard:latest dashboard/ run: DOCKER_BUILDKIT=0 docker build --network=host -t nas-dashboard:latest dashboard/
- name: Deploy - name: Deploy
run: docker compose -f /nas-dashboard/docker-compose.yml up -d --pull never run: docker compose -f /nas-dashboard/docker-compose.yml up -d --pull never
+1 -1
View File
@@ -2,7 +2,7 @@
FROM node:20-alpine AS frontend FROM node:20-alpine AS frontend
WORKDIR /build WORKDIR /build
COPY frontend/package.json frontend/package-lock.json* ./ COPY frontend/package.json frontend/package-lock.json* ./
RUN npm install RUN npm install --registry=https://registry.npmmirror.com
COPY frontend/ ./ COPY frontend/ ./
RUN npm run build RUN npm run build