From 92655c826a16b2a65de969810dee0108daa9d8e7 Mon Sep 17 00:00:00 2001 From: Bastian de Byl Date: Tue, 19 Jul 2022 09:31:55 -0400 Subject: [PATCH] 206-doublestar-mount Updated CHANGELOG, documentation examples added --- CHANGELOG.md | 2 +- docs/examples/drone.md | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) 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" +```