From 14a4857172df51deeb0fb56b7e96c482e9611b82 Mon Sep 17 00:00:00 2001 From: unimatrixgit <95320811+unimatrixgit@users.noreply.github.com> Date: Thu, 19 Nov 2026 19:52:15 +0100 Subject: [PATCH] Track the Forgejo cleanup navigation template and installation notes --- website/ops/forgejo/CI-CLEANUP.md | 12 ++++++++++++ website/ops/forgejo/extra_links.tmpl | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 website/ops/forgejo/CI-CLEANUP.md create mode 100644 website/ops/forgejo/extra_links.tmpl diff --git a/website/ops/forgejo/CI-CLEANUP.md b/website/ops/forgejo/CI-CLEANUP.md new file mode 100644 index 00000000..87ce031a --- /dev/null +++ b/website/ops/forgejo/CI-CLEANUP.md @@ -0,0 +1,12 @@ +The Forgejo administrator navigation trash icon opens the repository's manual +`clean-ci-artifacts.yml` action. It does not delete anything on navigation. +Click Run workflow, leave Preview enabled to inspect candidates, or untick it +to apply the limited cleanup. Only website artifacts older than seven days are +eligible; the newest six, current production, main-head and active builds stay. + +Install `extra_links.tmpl` as Forgejo's `custom/templates/custom/extra_links.tmpl` +and restart the `dunegit` service to load the administrator-only link. Preserve +any existing custom extra links rather than replacing them. + +Cleanup is separate from normal website builds. One-day upload artifact expiry +and the daily maintenance automation remain configured independently. diff --git a/website/ops/forgejo/extra_links.tmpl b/website/ops/forgejo/extra_links.tmpl new file mode 100644 index 00000000..f99c961c --- /dev/null +++ b/website/ops/forgejo/extra_links.tmpl @@ -0,0 +1,5 @@ +{{if .IsSigned}}{{if .SignedUser.IsAdmin}} + + + +{{end}}{{end}}