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}}