https://github.com/janstuemmel/drone-cache
a drone cache plugin
https://github.com/janstuemmel/drone-cache
cache docker drone drone-ci plugin
Last synced: 5 months ago
JSON representation
a drone cache plugin
- Host: GitHub
- URL: https://github.com/janstuemmel/drone-cache
- Owner: janstuemmel
- License: mit
- Created: 2017-08-18T00:50:31.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-18T19:33:43.000Z (about 8 years ago)
- Last Synced: 2025-02-17T22:33:36.055Z (8 months ago)
- Topics: cache, docker, drone, drone-ci, plugin
- Language: Shell
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# drone-cache
A caching plugin for drone-ci using gzip compression. Please read the [docs](./DOCS.md).
Heavily inspired by [Drillster/drone-volume-cache](https://github.com/Drillster/drone-volume-cache).
## Docker
Build the image:
```sh
docker build --rm=true -t janstuemmel/drone-cache .
```## Usage
### Restore cache
```sh
docker run --rm \
-e DRONE_REPO_OWNER="foo" \
-e DRONE_REPO_NAME="bar" \
-v /tmp/drone-cache:/cache \
-v $(pwd):$(pwd) \
-w $(pwd) \
janstuemmel/drone-cache
```### Rebuild cache
```sh
docker run --rm \
-e PLUGIN_CACHE="node_modules,.bla/bar" \
-e DRONE_REPO_OWNER="foo" \
-e DRONE_REPO_NAME="bar" \
-v /tmp/drone-cache:/cache \
-v $(pwd):$(pwd) \
-w $(pwd) \
janstuemmel/drone-cache
```