Docs
Persistent disks
Coming soon: disks aren’t available yet. If your job uses checklane/disk, it logs a warning and continues without the disk.
Add the step
Put checklane/disk before the job fills the folder:
steps:
- uses: actions/checkout@v4
- uses: checklane/disk@v1
with:
key: go
path: |
~/.cache/go-build
~/go/pkg/mod
- run: go test ./...| Input | What it does |
|---|---|
key | Names the disk. Every job in the repository that uses the same key gets the same disk. |
path | Where the disk shows up in the job. It doesn’t have to exist yet. List up to 16 folders, one per line. They all go on the same disk. |
commit | When the job’s changes are kept. See below. |
When changes are kept
commit | Kept |
|---|---|
true (default) | Always. |
false | Never. |
on-change | Only when the job wrote to the disk. |
if-missing | Only when the disk started empty. |
Give the jobs that only read a disk commit: false, so they don’t replace what the job that fills it left.
Rules
- A job can use up to 4 disks, however many folders each one holds.
- Only a job that succeeds in a push, schedule or manual run on your default branch saves what it changed. Pull requests start from the disk, but what they write isn’t kept.
- When two jobs with the same key finish at once, the one that finished last is kept.
- A disk no job used for 7 days is removed.
- Off Checklane’s runners, the step does nothing and the job runs as before.
Cost and limits
Disks cost $0.35 per GB a month for what they hold, measured every hour and paid from credit. Free minutes don’t pay for them. A job from an organization with no credit left runs without its disks. The step says why. See Pricing and credit.
Each repository keeps up to 25 GB of disks to start with. On the Caching page, under Disks, an admin raises or lowers that limit for a repository, and picks what happens at it: Keep going removes the disk used longest ago. Stop keeps what is there and saves no more. The page’s Disk rules list the defaults for new repositories.
See and delete disks
The Disks tab lists each disk by its key, with its size and when a job last used it. An admin can delete one, or all of a repository’s. The next job with that key starts with an empty disk.