Sign inSign up

janstuemmel/drone-cache

By janstuemmel

Updated about 9 years ago

a caching plugin for drone ci

Image
0

539

janstuemmel/drone-cache repository overview

drone-cache

A caching plugin for drone-ci using gzip compression. Please read the docs.

Heavily inspired by Drillster/drone-volume-cache.

Docker

Build the image:

docker build --rm=true -t janstuemmel/drone-cache .

Usage

Restore cache
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
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

Tag summary

Content type

Image

Digest

Size

3.3 MB

Last updated

about 9 years ago

docker pull janstuemmel/drone-cache