updated README to include caching details for #147

This commit is contained in:
Brad 2014-03-02 23:03:21 -08:00
parent c1b9353943
commit 526fc23299

View file

@ -12,6 +12,7 @@ Drone is a [Continuous Integration](http://en.wikipedia.org/wiki/Continuous_inte
* [Deployments](#deployments) * [Deployments](#deployments)
* [Notifications](#notifications) * [Notifications](#notifications)
* [Database Services](#databases) * [Database Services](#databases)
* [Caching](#caching)
* [Params Injection](#params-injection) * [Params Injection](#params-injection)
* [Documentation and References](#docs) * [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 Docker image, Drone will automatically proxy localhost connections to the correct
IP address. 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 ### Params Injection
You can inject params into .drone.yml. You can inject params into .drone.yml.