This commit is contained in:
Robin Grenzdörfer 2023-12-01 10:31:34 +00:00
parent decb38e564
commit 4032033c3e

@ -86,18 +86,19 @@ jobs:
# Lighthouse Analysis Step
- name: Lighthouse Analysis
run: |
docker run --rm -v $(pwd)/tmp:/tmp femtopixel/google-lighthouse https://www.webmakers.de/ --output json --output-path /tmp/lighthouse-report.json --chrome-flags="--headless --no-sandbox --disable-dev-shm-usage"
- mkdir -p ${{ github.workspace }}/lighthouse-reports
- docker run --rm -v ${{ github.workspace }}/lighthouse-reports:/lighthouse-reports femtopixel/google-lighthouse https://www.webmakers.de/ --output json --output-path /lighthouse-reports/lighthouse-report.json --chrome-flags="--headless --no-sandbox --disable-dev-shm-usage"
# Notify-Lighthouse Step
- name: Notify Lighthouse
run: |
docker run --rm \
-e PLUGIN_FROM=noreply@gitbase.de \
-e PLUGIN_HOST=smtp.basehosts.de \
-e PLUGIN_RECIPIENT=recipient@example.com \
-e PLUGIN_SUBJECT="Lighthouse Report" \
-v $(pwd)/tmp:/tmp \
drillster/drone-email /tmp/lighthouse-report.json
-e PLUGIN_FROM=noreply@gitbase.de \
-e PLUGIN_HOST=smtp.basehosts.de \
-e PLUGIN_RECIPIENT=recipient@example.com \
-e PLUGIN_SUBJECT="Lighthouse Report" \
-v ${{ github.workspace }}/lighthouse-reports:/lighthouse-reports \
drillster/drone-email /lighthouse-reports/lighthouse-report.json
- name: deploy
if: github.ref == 'refs/heads/master'