mirror of
https://github.com/drillster/drone-volume-cache.git
synced 2026-07-06 16:02:18 +08:00
54f2b742e5f5055e53405725041cf3d8fea2fdbd
Only remove cache folder of the current job
drone-volume-cache
This is a pure Bash Drone 0.5 plugin to cache files and/or folders to a locally mounted volume.
For more information on how to use the plugin, please take a look at the docs.
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" \
-e DRONE_JOB_NUMBER=0 \
-v $(pwd):$(pwd) \
-v /tmp/cache:/cache \
-w $(pwd) \
drillster/drone-volume-cache
Languages
Shell
94.2%
Dockerfile
5.8%