Gitlab Runner with Cache

Hi All,

Is there a way to use the NixOS module GitLab Runner? To use a cache like Minio. Using the current NixOS module, or do we need to update it to allow us to set a custom S3 compatible cache?

Link to module: nixpkgs/nixos/modules/services/continuous-integration/gitlab-runner.nix at 99dc8785f6a0adac95f5e2ab05cc2e1bf666d172 · NixOS/nixpkgs · GitHub

Printing out the current config generated:

 cat /var/lib/gitlab-runner/.gitlab-runner/config.toml

[[runners]]
  limit = 10
  url = "https://gitlab.com"
  executor = "docker"
  [runners.custom_build_dir]
  [runners.cache]
    MaxUploadedArchiveSize = 0
    [runners.cache.s3]
    [runners.cache.gcs]
    [runners.cache.azure]

We can see there is a default cache section.

I suspect its going to involve improving the existing module. But any help would be appreciated thanks!

1 Like

Sounds like Module improvement: gitlab-runner settings for individual runners · Issue #326256 · NixOS/nixpkgs · GitHub

1 Like