Track the Forgejo cleanup navigation template and installation notes

This commit is contained in:
unimatrixgit 2026-11-19 19:52:15 +01:00
commit 14a4857172
2 changed files with 17 additions and 0 deletions

View file

@ -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.

View file

@ -0,0 +1,5 @@
{{if .IsSigned}}{{if .SignedUser.IsAdmin}}
<a class="item dune-ci-cleanup" href="/git/unimatrix/MC/actions?workflow=clean-ci-artifacts.yml" title="Oude CI-artifacts opruimen" aria-label="Oude CI-artifacts opruimen">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 6h18M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2M5 6l1 14a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1l1-14M10 10v7M14 10v7"/></svg>
</a>
{{end}}{{end}}