From 526fc23299a94953c279d22829505cf21c9fa507 Mon Sep 17 00:00:00 2001 From: Brad Date: Sun, 2 Mar 2014 23:03:21 -0800 Subject: [PATCH] updated README to include caching details for #147 --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index d616a74a..e9d51d94 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.