From 406cf2205080ef8779d6066e1e73ec47dc1cede0 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Wed, 11 Feb 2026 15:03:14 +0100 Subject: [PATCH] ci: fix private registry access in Docker build stage --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d9dd7329..1b654f66 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,11 +24,14 @@ RUN corepack enable && corepack prepare pnpm@10.3.0 --activate # Copy lockfile and manifest for dependency installation caching COPY pnpm-lock.yaml package.json .npmrc* ./ -# Install dependencies with cache mount +# Configure private registry and install dependencies RUN --mount=type=cache,id=pnpm,target=/pnpm/store \ --mount=type=secret,id=NPM_TOKEN \ export NPM_TOKEN=$(cat /run/secrets/NPM_TOKEN 2>/dev/null || echo $NPM_TOKEN) && \ - pnpm install --frozen-lockfile + echo "@mintel:registry=https://npm.infra.mintel.me" > .npmrc && \ + echo "//npm.infra.mintel.me/:_authToken=\${NPM_TOKEN}" >> .npmrc && \ + pnpm install --frozen-lockfile && \ + rm .npmrc # Copy source code COPY . .