From c9cde808e29ac20a3c142676b46b2ae77a534aa0 Mon Sep 17 00:00:00 2001 From: Fabian Hauser Date: Wed, 26 Mar 2025 16:00:05 +0200 Subject: [PATCH] Add note about clearing git-ci-runner caches --- nixos-modules/git-ci-runner/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nixos-modules/git-ci-runner/README.md b/nixos-modules/git-ci-runner/README.md index f3eea58..2bfc937 100644 --- a/nixos-modules/git-ci-runner/README.md +++ b/nixos-modules/git-ci-runner/README.md @@ -18,3 +18,14 @@ Consequentially, don't use to build nix things that should stay secret (which is ## Create Secret Token To create a new token for registration, follow the steps outlined in the [Forgejo documentation](https://forgejo.org/docs/latest/user/actions/#forgejo-runner). + +## Clear Runner Caches + +Under some circumstances, runner caches need to be cleared. This can be done with: + +```bash +cd /var/lib/private/gitea-runner/ +systemctl stop --all gitea-runner-* +rm -r */.cache/ +systemctl start --all gitea-runner-* +```