From 4109ee9b7739ba17d5a2a9313209d2b90b642263 Mon Sep 17 00:00:00 2001 From: jarvis-at-skic Date: Tue, 11 Aug 2026 19:53:26 +0000 Subject: [PATCH] ci: require persistent Pages mount --- .gitea/workflows/build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 114a24c..5f04aef 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -43,7 +43,12 @@ jobs: *..*|/*|*/|*//* ) echo "unsafe repository slug: $ORG_REPO" >&2; exit 1 ;; esac test -f build/index.html - destination="/gondor-v1-gitea-pages/$ORG_REPO" + pages_root="/gondor-v1-gitea-pages" + if ! mountpoint -q "$pages_root"; then + echo "$pages_root is not a persistent host mount inside the Gitea Actions job container" >&2 + exit 1 + fi + destination="$pages_root/$ORG_REPO" rm -rf -- "$destination" mkdir -p "$destination" cp -a build/. "$destination/"