fix(ci): use npmmirror for CI and Docker dependency installs
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
Co-authored-by: HiFox Agent <agents-noreply@hifox.com>
This commit is contained in:
+2
-2
@@ -2,7 +2,7 @@ FROM node:22-alpine AS builder
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
RUN npm ci
|
RUN npm ci --registry=https://registry.npmmirror.com/
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
@@ -10,7 +10,7 @@ FROM node:22-alpine
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
RUN npm ci --omit=dev
|
RUN npm ci --omit=dev --registry=https://registry.npmmirror.com/
|
||||||
COPY --from=builder /app/dist ./dist
|
COPY --from=builder /app/dist ./dist
|
||||||
COPY src/server ./src/server
|
COPY src/server ./src/server
|
||||||
COPY src/shared ./src/shared
|
COPY src/shared ./src/shared
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ steps:
|
|||||||
- main
|
- main
|
||||||
commands: |
|
commands: |
|
||||||
cd $CI_WORKSPACE
|
cd $CI_WORKSPACE
|
||||||
npm ci
|
npm ci --registry=https://registry.npmmirror.com/
|
||||||
npm run lint
|
npm run lint
|
||||||
npm test
|
npm test
|
||||||
npm run build
|
npm run build
|
||||||
|
|||||||
Reference in New Issue
Block a user