AWS S3 Cache
by drone-plugins
The S3 cache plugin can be used to preserve files and directories between builds.
Example
kind: pipeline
name: default
steps:
- name: restore
image: plugins/s3-cache
settings:
pull: true
endpoint: http://minio.company.com
access_key: myaccesskey
secret_key: supersecretKey
restore: true
Properties
endpoint
stringoptionalcustom endpoint URL (optional, to use a S3 compatible non-Amazon service)
Default: none
access_key
stringoptionalamazon access key
Default: none
secret_key
stringoptionalamazon secret key
Secret recommendedDefault: none
restore
booleanoptionalmode to restore the build environment from cache
Default: false
rebuild
booleanoptionalmode to rebuild the cache from the build environment and specified mounts
Default: false
flush
booleanoptionalmode to flush the cache of old cache items (please be sure to set this so we don't waste storage)
Default: false
flush_age
numberoptionalflush cache files older then x days
Default: 30
mount
arrayoptionallist of files/directories to cache
Default: none
debug
booleanoptionalenable debug logging
Default: false
filename
stringoptionalfilename for the cache
Default: none
root
stringoptionalroot path prefix for all cache default paths (path, fallback_path, and flush_path).
Default: /
path
stringoptionalpath to store the cache file
Default: [root]/<owner>/<repo>/<branch>/
fallback_path
stringoptionalfallback path for the cache file
Default: [root]/<owner>/<repo>/<branch>/
flush_path
stringoptionalpath to search for flushable cache files.
Default: [root]/<owner>/<repo>/
workdir
stringoptionalpath where to restore the cache files to.
Default: none