diff --git a/CHANGELOG.md b/CHANGELOG.md index a8f0b2b9..bd8ac91b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Nothing. +- Added double star directory searching in mounts (e.g. `path/**/subdir`) ### Changed diff --git a/docs/examples/drone.md b/docs/examples/drone.md index 696c81ad..17cdb647 100644 --- a/docs/examples/drone.md +++ b/docs/examples/drone.md @@ -222,3 +222,40 @@ steps: rebuild: true debug: true ``` + +### Glob Double Star Mounting + +```yaml +kind: pipeline +name: default + +steps: + - name: restore-cache-debug + image: meltwater/drone-cache + settings: + pull: true + restore: true + debug: true + mount: + - "node_modules" + - "packages/**/dist" + - "packages/**/node_modules" + + - name: build + image: npm + pull: true + commands: + - npm build + + + - name: restore-cache-debug + image: meltwater/drone-cache + settings: + pull: true + rebuild: true + debug: true + mount: + - "node_modules" + - "packages/**/dist" + - "packages/**/node_modules" +```