My local Gitea runner removes cloned repositories after running each job. As a result, the repository has to be cloned again for every new job.
I want the runner to keep the cloned repository and reuse the directory for jobs from the same Git repository. Some of my repositories contains roughly 20GB of LFS data (that’s only the data needed for a checkout, the actual LFS repos are much larger), and downloading it for every job takes too much time. Unfortunately, caching doesn’t help since it still involves compressing, deleting, and decompressing the data.
In GitLab, the runner achieves this by simply running a git reset & clean
before each job, which makes the process much faster.
Is there a way to configure Gitea’s runner to stop deleting the cloned repository after each job, similar to how GitLab’s runner works?
Any suggestions or help would be appreciated!