A Buildkite plugin to trim old builds from the file system to free up disk space. Use with caution.
Add the following to your pipeline.yml
:
steps:
- command: ls
plugins:
- samsarahq/trim-builds#v0.1.0:
minimum: 10485760
The minimum amount of disk space that must be free before the plugin attempts to delete old builds.
Default is 10485760
(10 GB).
To run the tests:
docker-compose run --rm tests
- Fork the repo
- Make the changes
- Run the tests
- Commit and push your changes
- Send a pull request
MIT (see LICENSE)