Drone CI S3 Cache plugin
10K+
Customized Drone CI plugin for caching build artifacts to S3 compatible storage backends. For the usage information and a listing of the available options please take a look at the official docs.
Customized by ecmchow https://github.com/ecmchow/drone-s3-cache
This plugin is modified to support additional S2 (an extension of Snappy) & ZSTD (Zstandard) compression.
Same as official plugin, you may use filename property to specify your artifact filename and control its compression with file extension.
kind: pipeline
type: docker
name: Build
steps:
- name: restore
image: ecmchow/drone-s3-cache
settings:
# no compression by default
filename: cache.tar.gz # GZIP compression
filename: cache.tar.sz # S2 compression
filename: cache.tar.zst # ZSTD compression
For reference, a NodeJS project with 3.0GB of node_modules running on a 8 core runner with 10gbe network. Cache is uploaded to and downloaded from a single MinIO instance
| Compression | Size | Download+restore time | Build+upload time |
|---|---|---|---|
| None (TAR archive only) | 3.0 GiB | 10s | 17s |
| GZIP | 589.2 MiB | 16s | 1m 7s |
| S2 | 749.0 MiB | 4s | 6s |
| ZSTD | 544.4 MiB | 5s | 11s |
Content type
Image
Digest
sha256:e5f817ab8…
Size
8.3 MB
Last updated
about 2 years ago
docker pull ecmchow/drone-s3-cache:1.6.1