From 4032033c3e1f6d95bb5f688c2f190fff1583f8ae Mon Sep 17 00:00:00 2001
From: robin <binkrassdufass@gmail.com>
Date: Fri, 1 Dec 2023 10:31:34 +0000
Subject: [PATCH] lighthouse

---
 .gitea/workflows/deploy.yaml | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml
index 05b27c2..bbf055e 100644
--- a/.gitea/workflows/deploy.yaml
+++ b/.gitea/workflows/deploy.yaml
@@ -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'