You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,10 +31,25 @@ steps:
31
31
command: go test ./...
32
32
```
33
33
34
+
## Hosted Agent Cache Volumes
35
+
36
+
```yml
37
+
cache: ".buildkite/cache-volume"
38
+
39
+
steps:
40
+
- label: ":wrench: Test"
41
+
plugins:
42
+
- buildkite-plugins/mise#v1.0.0: ~
43
+
command: go test ./...
44
+
```
45
+
46
+
When running on Buildkite hosted agents, the plugin automatically uses `/cache/bkcache/mise` as `MISE_DATA_DIR` if a cache volume is attached. Buildkite only mounts that volume when the pipeline or step defines `cache`, so you still need to request one in `pipeline.yml`.
47
+
34
48
## Configuration
35
49
36
50
- `version` (default: `latest`): mise version to install.
37
51
- `dir` (default: checkout directory): directory where `mise install` and `mise env` run.
52
+
- `cache-dir` (default: unset): directory to use for `MISE_DATA_DIR`. This is mainly useful on self-hosted agents with a persistent disk.
38
53
39
54
## Repo Requirements
40
55
@@ -44,7 +59,7 @@ The target directory must contain one of:
44
59
- `.mise.toml`
45
60
- `.tool-versions`
46
61
47
-
Advanced `mise` behavior should be configured with normal step environment variables such as `MISE_DATA_DIR`, `MISE_LOG_LEVEL`, or `MISE_EXPERIMENTAL`, not plugin-specific config keys.
62
+
`MISE_DATA_DIR`still takes precedence over plugin configuration. Advanced `mise` behavior should otherwise be configured with normal step environment variables such as `MISE_LOG_LEVEL` or `MISE_EXPERIMENTAL`.
0 commit comments