一个用于在构建之间缓存当前工作空间文件的无人机插件,以减少构建时间
This repository has been deprecated and will no longer be maintained. Further development is happening on the official drone-plugins fork here
A Drone plugin for caching current workspace files between builds to reduce your build times. drone-cache is a small CLI program, written in Go without any external OS dependencies (such as tar, etc).
With drone-cache, you can provide your own cache key templates, specify archive format (tar, tar.gz, etc) and you can use popular object storage as storage for your cached files, even better you can implement your custom storage backend to cover your use case.
For detailed usage information and a list of available options please take a look at usage and examples. If you want to learn more about custom cache keys, see cache key templates.
If you want to learn more about the story behind drone-cache, you can read our blogpost Making Drone Builds 10 Times Faster!!
drone-cache stores mounted directories and files under a key at the specified backend (by default S3).
Use this plugin to cache data that makes your builds faster. In the case of a cache miss or an empty cache restore it will fail silently in won't break your running pipeline.
The best example would be to use this with your package managers such as Mix, Bundler or Maven. After your initial download, you can build a cache and then you can restore that cache in your next build.
With restored dependencies from a cache, commands like mix deps.get will only need to download new dependencies, rather than re-download every package on each build.
The following example configuration file (.drone.yml) shows the most common use of drone-cache.
………Release management handled by the CI pipeline. When you create a tag on master branch, CI handles the rest.
You can find released artifacts (binaries, code, archives) under releases.
You can find released images at DockerHub.
PLEASE DO NOT INTRODUCE BREAKING CHANGES
Keep in mind that users usually use the image tagged with
latestin their pipeline, please make sure you do not interfere with their working workflow. Latest stable releases will be tagged with thelatest.
drone-cache uses SemVer for versioning. For the versions available, see the tags on this repository.
As the versioning scheme dictates, drone-cache respects backward compatibility within the major versions. However, the project only offers guarantees regarding the command-line interface (flags and environment variables). Any exported public package can change its API.
See the list of all contributors.
Please read CONTRIBUTING.md to understand how to submit pull requests to us, and also see our code of conduct.
All ideas for new features and bug reports will be kept in github.com/meltwater/drone-cache/issues.
One bigger area of future investment is to add a couple of new storage backends for caching the workspace files.
This project is licensed under the Apache License 2.0.
暂无开放 Issues,或尚未同步最近议题。