mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 02:11:01 +00:00
updated README to include caching details for #147
This commit is contained in:
parent
c1b9353943
commit
526fc23299
1 changed files with 20 additions and 0 deletions
20
README.md
20
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.
|
||||
|
|
Loading…
Reference in a new issue