ci(lighthouse): add jenkins lighthouse automated audit

This commit is contained in:
2026-01-12 11:08:43 +01:00
parent 42d5dce9b0
commit b5a7cda575
3 changed files with 43 additions and 3 deletions

View File

@@ -11,6 +11,21 @@ services:
networks:
- reverse-proxy
lighthouse-audit:
profiles:
- audit
image: zenika/alpine-chrome:${ZENIKA_VERSION}
container_name: lighthouse-audit
user: "0:0"
volumes:
- ./dist-audit:/app/dist
- ./.lighthouseci:/app/.lighthouseci
- ./.lighthouserc.cjs:/app/.lighthouserc.cjs
environment:
- CHROME_PATH=/usr/bin/chromium-browser
working_dir: /app
command: npx @lhci/cli@${LHCI_VERSION} collect --config=/app/.lighthouserc.cjs
networks:
reverse-proxy:
external: true