fix(lighthouse): merge astro data and audit config to fix permission issues

This commit is contained in:
2026-01-12 11:23:16 +01:00
parent 2daa0dcffb
commit 1ac38be75b
2 changed files with 8 additions and 5 deletions

5
Jenkinsfile vendored
View File

@@ -20,11 +20,14 @@ pipeline {
steps {
// Temporary container to get data in /dist folder
// Reuse of just build portfolio image
sh "mkdir -p ./dist-audit ./.lighthouseci"
sh "mkdir -p ./dist-audit ./.lighthouseci"
sh "docker create --name audit-tmp portfolio:${env.APP_VERSION}"
sh "docker cp audit-tmp:/usr/share/caddy/. ./dist-audit"
sh "docker rm audit-tmp"
// Add audit config in the same folder
sh "cp .lighthouserc.cjs ./dist-audit/audit-config.cjs"
// Launch special service in docker compose
sh "docker compose --profile audit run --rm lighthouse-audit"
}