diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 270eaaa2..306ba82f 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -206,8 +206,8 @@ jobs: UMAMI_API_ENDPOINT=${{ secrets.UMAMI_API_ENDPOINT || vars.UMAMI_API_ENDPOINT || 'https://analytics.infra.mintel.me' }} NPM_TOKEN=${{ secrets.REGISTRY_PASS }} tags: registry.infra.mintel.me/mintel/klz-cables.com:${{ needs.prepare.outputs.image_tag }} - cache-from: type=registry,ref=registry.infra.mintel.me/mintel/klz-cables.com:buildcache - cache-to: type=registry,ref=registry.infra.mintel.me/mintel/klz-cables.com:buildcache,mode=max + cache-from: type=registry,ref=registry.infra.mintel.me/mintel/klz-cables.com:buildcache-v2 + cache-to: type=registry,ref=registry.infra.mintel.me/mintel/klz-cables.com:buildcache-v2,mode=max secrets: | "NPM_TOKEN=${{ secrets.REGISTRY_PASS }}" diff --git a/Dockerfile b/Dockerfile index b0e62dea..f0363222 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,6 @@ ARG NEXT_PUBLIC_TARGET ARG DIRECTUS_URL ARG UMAMI_WEBSITE_ID ARG UMAMI_API_ENDPOINT -ARG NPM_TOKEN # Environment variables for Next.js build ENV NEXT_PUBLIC_BASE_URL=$NEXT_PUBLIC_BASE_URL @@ -25,7 +24,7 @@ COPY pnpm-lock.yaml package.json .npmrc* ./ # 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) && \ + export NPM_TOKEN=$(cat /run/secrets/NPM_TOKEN) && \ echo "@mintel:registry=https://npm.infra.mintel.me" > .npmrc && \ echo "//npm.infra.mintel.me/:_authToken=\${NPM_TOKEN}" >> .npmrc && \ pnpm install --frozen-lockfile && \