CI: use npm China mirror + host network for build
Deploy Dashboard / deploy (push) Failing after 2m49s
Deploy Dashboard / deploy (push) Failing after 2m49s
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user