Skip to content

Forgejo Actions Runner

Cache retention

The cache is wiped every 48 hours

If you've been given access to a ModernLeft-hosted runner and your workflow uses a cache step, note that the runner's cache store is deleted every 48 hours. Anything cached (Docker buildx layers, dependency downloads, etc.) will be gone after that window, so treat the cache as a best-effort speedup, never durable storage. Every job must still work on a cold cache.

Example of a cache step (Docker buildx layers):

- name: Cache Docker layers
  uses: actions/cache@v5
  with:
      path: ${{ runner.temp }}/.buildx-cache
      key: ${{ runner.os }}-buildx-${{ github.sha }}
      restore-keys: |
          ${{ runner.os }}-buildx-