fix(lighthouse): merge astro data and audit config to fix permission issues
Some checks failed
Portfolio/pipeline/head There was a failure building this commit
Some checks failed
Portfolio/pipeline/head There was a failure building this commit
This commit is contained in:
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@@ -25,6 +25,9 @@ pipeline {
|
||||
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"
|
||||
}
|
||||
|
||||
@@ -18,13 +18,13 @@ services:
|
||||
container_name: lighthouse-audit
|
||||
user: "0:0"
|
||||
volumes:
|
||||
- ${PWD}/dist-audit:/app/dist
|
||||
- ${PWD}/.lighthouseci:/app/.lighthouseci
|
||||
- ${PWD}/.lighthouserc.cjs:/app/.lighthouserc.cjs
|
||||
# astro file + config
|
||||
- ./dist-audit:/app/dist
|
||||
- ./.lighthouseci:/app/.lighthouseci
|
||||
environment:
|
||||
- CHROME_PATH=/usr/bin/chromium-browser
|
||||
working_dir: /app
|
||||
command: npx @lhci/cli@${LHCI_VERSION} collect --config=/app/.lighthouserc.cjs
|
||||
command: npx @lhci/cli@${LHCI_VERSION} collect --config=/app/dist/audit-config.cjs
|
||||
|
||||
networks:
|
||||
reverse-proxy:
|
||||
|
||||
Reference in New Issue
Block a user