Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Drone plugin for caching node modules to a locally mounted volume

License

Notifications You must be signed in to change notification settings

movio/drone-npm-cache

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archived

This was a brief experiment

drone-npm-cache

This is a pure Bash Drone plugin to cache npm downloads to a locally mounted volume

Docker

Build the docker image by running:

docker build --rm=true -t movio/drone-npm-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) \
  movio/drone-npm-cache

About

Drone plugin for caching node modules to a locally mounted volume

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Shell 92.3%
  • Dockerfile 7.7%