mirror of
https://gitlab.com/TECHNOFAB/nix-gitlab-ci.git
synced 2025-12-12 02:00:13 +01:00
chore(scripts): improve cache strategy handling, see #21
This commit is contained in:
parent
1e978a3edf
commit
d734853223
3 changed files with 17 additions and 3 deletions
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue