All Projects → drone-plugins → drone-volume-cache

drone-plugins / drone-volume-cache

Licence: Apache-2.0 License
Drone plugin to cache directories within the build workspace

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to drone-volume-cache

drone-ansible
Drone plugin to provision via Ansible
Stars: ✭ 24 (+60%)
Mutual labels:  drone, drone-plugin
drone-ftps
Deploy to FTPS server from Drone CI build
Stars: ✭ 18 (+20%)
Mutual labels:  drone, drone-plugin
drone-manifest
Drone plugin to push Docker manifests
Stars: ✭ 14 (-6.67%)
Mutual labels:  drone, drone-plugin
drone-webhook
Drone plugin for triggering webhook notifications
Stars: ✭ 40 (+166.67%)
Mutual labels:  drone, drone-plugin
drone-jenkins
Drone plugin for trigger Jenkins jobs.
Stars: ✭ 35 (+133.33%)
Mutual labels:  drone, drone-plugin
drone-irc
Drone plugin for sending IRC messages
Stars: ✭ 12 (-20%)
Mutual labels:  drone, drone-plugin
drone-npm
Drone plugin for publishing packages to NPM
Stars: ✭ 21 (+40%)
Mutual labels:  drone, drone-plugin
drone-s3
Drone plugin for publishing artifacts to Amazon S3
Stars: ✭ 30 (+100%)
Mutual labels:  drone, drone-plugin
drone-s3-cache
Caches build artifacts to S3 compatible storage backends
Stars: ✭ 27 (+80%)
Mutual labels:  drone, drone-plugin
drone-gh-pages
Drone plugin for publishing to GitHub Pages
Stars: ✭ 14 (-6.67%)
Mutual labels:  drone, drone-plugin
drone-facebook
Drone plugin for sending Facebook notifications
Stars: ✭ 15 (+0%)
Mutual labels:  drone, drone-plugin
drone-git-push
Drone plugin for deploying code using git push
Stars: ✭ 49 (+226.67%)
Mutual labels:  drone, drone-plugin
drone-hugo
Drone plugin to publish Hugo generated websites
Stars: ✭ 26 (+73.33%)
Mutual labels:  drone, drone-plugin
dss
This repository contains a simple, open, and scalable API used for separate UAS Service Suppliers (USS) to communicate during UAS operations as a Discovery and Synchronization Service (DSS) in accordance with ASTM F3411-19 and draft strategic deconfliction standard. This flexible and distributed system is used to connect multiple USSs operating …
Stars: ✭ 85 (+466.67%)
Mutual labels:  drone
zubax gnss
Zubax GNSS module
Stars: ✭ 45 (+200%)
Mutual labels:  drone
pdrone
Control Parrot drones with JavaScript
Stars: ✭ 22 (+46.67%)
Mutual labels:  drone
GapFlyt
GapFlyt: Active Vision Based Minimalist Structure-less Gap Detection For Quadrotor Flight
Stars: ✭ 30 (+100%)
Mutual labels:  drone
Node-RED-Tello-Control
Node-RED flows to control the Ryze Tello Drone
Stars: ✭ 121 (+706.67%)
Mutual labels:  drone
QGISFMV
QGIS Full Motion Video (FMV)
Stars: ✭ 104 (+593.33%)
Mutual labels:  drone
olympe
Python controller library for Parrot Drones
Stars: ✭ 62 (+313.33%)
Mutual labels:  drone

drone-volume-cache

Build Status Gitter chat Join the discussion at https://discourse.drone.io Drone questions at https://stackoverflow.com Go Doc Go Report

Drone plugin that allows you to cache directories within the build workspace, this plugin is backed by Docker volumes. For the usage information and a listing of the available options please take a look at the docs.

Build

Build the binary with the following commands:

go build

Docker

Build the Docker image with the following commands:

GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a -tags netgo -o release/linux/amd64/drone-volume-cache
docker build --rm -t plugins/volume-cache .

Usage

Execute from the working directory:

docker run --rm \
  -e PLUGIN_FLUSH=true \
  -e PLUGIN_TTL=1 \
  -v $(pwd):$(pwd) \
  -v /tmp/cache:/cache \
  -w $(pwd) \
  plugins/volume-cache

docker run --rm \
  -e PLUGIN_RESTORE=true \
  -e PLUGIN_FILE="backup.tar" \
  -e DRONE_REPO_OWNER="foo" \
  -e DRONE_REPO_NAME="bar" \
  -e DRONE_COMMIT_BRANCH="test"\
  -v $(pwd):$(pwd) \
  -v /tmp/cache:/cache \
  -w $(pwd) \
  plugins/volume-cache

docker run -it --rm \
  -v $(pwd):$(pwd) \
  -v /tmp/cache:/cache \
  -w $(pwd) \
  alpine:latest sh -c "mkdir -p cache && echo 'testing cache' >> cache/test && cat cache/test"

docker run --rm \
  -e PLUGIN_REBUILD=true \
  -e PLUGIN_MOUNT="./cache" \
  -e PLUGIN_FILE="backup.tar" \
  -e DRONE_REPO_OWNER="foo" \
  -e DRONE_REPO_NAME="bar" \
  -e DRONE_COMMIT_BRANCH="test"\
  -v $(pwd):$(pwd) \
  -v /tmp/cache:/cache \
  -w $(pwd) \
  plugins/volume-cache
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].