Files
plugin-drone-volume-cache/README.md
T
Michael de Wit 13f372a63c add project
2016-12-07 11:45:05 +01:00

558 B

drone-volume-cache

This is a pure Bash Drone 0.5 plugin to cache files and/or folders to a locally mounted volume.

Docker

Build the docker image by running:

docker build --rm=true -t drillster/drone-volume-cache .

Usage

Execute from the working directory:

docker run --rm \
  -e PLUGIN_REBUILD=true \
  -e PLUGIN_MOUNT="./node_modules" \
  -e DRONE_REPO_OWNER="foo" \
  -e DRONE_REPO_NAME="bar" \
  -v $(pwd):$(pwd) \
  -v /tmp/cache:/cache \
  -w $(pwd) \
  drillster/drone-volume-cache