mirror of
https://github.com/tiennm99/composes.git
synced 2026-10-05 06:13:43 +00:00
0134b64cdedffe2996336914b6bc2a8971aa4a7c
Adds a skill to audit the local Gitea mirror stack for repos whose pull failed, then clean up only what is safe to delete. Detection combines four signals, since none is sufficient alone: the Gitea API (empty repos with no completed initial pull), an upstream reachability probe, the mirror app database, and the gitea container log. The container log reflects a retention window rather than history, so it is never the sole basis for deletion. Deletion is gated on a contradiction between Gitea and the mirror app: a repo that is empty while the app records the pull as finished. Repos the app is still cloning or has queued look identical by API fields alone (empty, zero size, no mirror timestamp), so they are excluded to avoid destroying work in progress. Repos that still hold content are reported for retry and never deleted, so a transient fetch error cannot cost a mirror. Deleting a broken repo also resets its mirror-app row to pending; without that the app never re-pulls it and the mirror is lost instead of restored. Cleanup is dry-run by default and warns on a stale plan.
Description
Docker Compose files for the services I self-host — Gitea mirror, Couchbase, code-server, Grafana Alloy, coding-agent UIs and more — deployed through Coolify and Dokploy
435 KiB
0 Stars
1 Watchers
0 Forks
Languages
Shell
89.9%
Dockerfile
10.1%