Update .gitlab-ci.yml file

This commit is contained in:
2025-11-11 23:11:37 +01:00
parent b0213b7742
commit 8fd87a3fb4

View File

@@ -9,13 +9,26 @@ cache:
install: install:
stage: install stage: install
image: node:20-alpine image: node:20-bullseye # robuster als alpine für viele Packages
script: script:
- node -v
- npm -v
- corepack enable - corepack enable
- pnpm install --frozen-lockfile - corepack prepare pnpm@9.12.0 --activate
artifacts: - pnpm -v
paths: # Debug: Netzwerk & DNS
- node_modules/ - echo "nameserver 1.1.1.1" | tee /etc/resolv.conf || true
- ping -c 1 registry.npmjs.org || true
- npm config get registry
# Robustere PNPM-Settings gegen Hänger
- pnpm config set network-timeout 600000
- pnpm config set fetch-retries 5
- pnpm config set prefer-offline false
# Falls Git-Abhängigkeiten vorkommen:
- apt-get update && apt-get install -y git openssh-client
# Wenn du ein pnpm-lock.yaml hast: nutze --frozen-lockfile, sonst ohne
- if [ -f pnpm-lock.yaml ]; then pnpm install --frozen-lockfile --reporter=append-only; else pnpm install --reporter=append-only; fi
build: build:
stage: build stage: build