feat(ci): add automated Lighthouse audit pipeline
All checks were successful
Portfolio/pipeline/head This commit looks good

This commit is contained in:
2026-01-12 18:41:38 +01:00
parent f819c6d708
commit 416ad99b90
17 changed files with 2308 additions and 34 deletions

View File

@@ -1,7 +1,8 @@
ARG NODE_VERSION
ARG CADDY_VERSION
# --- BUILD ---
FROM node:24-alpine AS build
FROM node:${NODE_VERSION}-alpine AS build
RUN corepack enable && corepack prepare pnpm@latest --activate
ENV ASTRO_TELEMETRY_DISABLED=1
@@ -10,10 +11,19 @@ WORKDIR /app
# Copy depedencies
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
# Copy all and build
# Install pnpm with cache
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
PNPM_HOME="/pnpm" pnpm install --frozen-lockfile
# Copy all
COPY . .
# Check files
RUN pnpm run lint
RUN pnpm run check
# Build
RUN pnpm build
# --- DEPLOY ---