chore(scripts): improve cache strategy handling, see #21

This commit is contained in:
technofab 2025-03-22 21:50:33 +01:00
parent 1e978a3edf
commit d734853223
3 changed files with 17 additions and 3 deletions

View file

@ -3,9 +3,14 @@ spec:
cache_strategy:
type: string
description: |
(empty for auto) | none | runner | cachix | attic
Sets the default strategy and will be overridden by $NIX_CI_CACHE_STRATEGY
default: "none"
auto (default) | none | runner | cachix | attic
Sets the default caching strategy.
- "auto": dynamically selects the best strategy for every job based on env variables
- "none": disables caching
- "runner", "cachix" & "attic": forces every job to use this strategy
Can be overridden by setting NIX_CI_CACHE_STRATEGY in the pipeline variables.
default: "auto"
cache_files:
type: array
description: |