diff --git a/README.md b/README.md index d616a74a7..e9d51d943 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ Drone is a [Continuous Integration](http://en.wikipedia.org/wiki/Continuous_inte * [Deployments](#deployments) * [Notifications](#notifications) * [Database Services](#databases) +* [Caching](#caching) * [Params Injection](#params-injection) * [Documentation and References](#docs) @@ -258,6 +259,25 @@ have their own local IP address. If the **socat** utility is installed inside yo Docker image, Drone will automatically proxy localhost connections to the correct IP address. +### Caching + +Drone can persist directories between builds. This should be used for caching dependencies to +decrease overall build time. Examples include your `.npm`, `.m2`, `bundler`, etc. + +``` +cache: + - /usr/local/bin/go/pkg +``` + +This will cache the directory relative to the root directory of your repository: + +``` +cache: + - .npm +``` + +**NOTE:** this is an alpha quality feature and still has some quirks. See https://github.com/drone/drone/issues/147 + ### Params Injection You can inject params into .drone.yml.