fix(ci): restore npm mirror for dependency installs
ci/woodpecker/push/woodpecker Pipeline was canceled
ci/woodpecker/push/woodpecker Pipeline was canceled
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/ --no-audit --no-fund
|
||||||
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/ --no-audit --no-fund
|
||||||
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
|
||||||
|
|||||||
+5
-2
@@ -12,8 +12,11 @@ steps:
|
|||||||
- main
|
- main
|
||||||
- feature/asset-statistics
|
- feature/asset-statistics
|
||||||
commands: |
|
commands: |
|
||||||
cd $CI_WORKSPACE
|
set -eu
|
||||||
npm ci
|
cd "$CI_WORKSPACE"
|
||||||
|
node --version
|
||||||
|
npm --version
|
||||||
|
npm ci --registry=https://registry.npmmirror.com/ --no-audit --no-fund --loglevel=verbose
|
||||||
npm run lint
|
npm run lint
|
||||||
npm test
|
npm test
|
||||||
npm run build
|
npm run build
|
||||||
|
|||||||
Reference in New Issue
Block a user