A bitrise step to download your cache from a s3 bucket using custom keys with fallback.
Should be used with S3 Cache Push
Input | Description |
---|---|
cache_aws_access_key_id | Your aws access key id |
cache_aws_secret_access_key | Your aws secret access key |
cache_aws_region | The region of your S3 bucket. E.g.: us-east-1 |
cache_bucket_name | The name of your S3 bucket. E.g.: mybucket |
cache_restore_keys |
The list of keys with fallbacks to restore the cache. E.g.:
{{ stackrev }}-{{ branch }}-{{ checksum "Cartfile.resolved" }} carthage-{{ branch }}-{{ checksum "Cartfile.resolved" }} carthage-{{ branch }} carthage- |
cache_path | Path to extract the file or directory cached. For instance, if you used S3 Cache Push with the path ./Carthage then this value should be ./ |
The cache key can contain special values for convenience.
Value | Description |
---|---|
{{ branch }} |
The current branch being built. It will use the $BITRISE_GIT_BRANCH environment var. |
{{ checksum "path/to/file" }} |
A SHA256 hash of the given file's contents. Good candidates are dependency manifests, such as Gemfile.lock , Carthage.resolved , and Mintfile . |
{{ stackrev }} |
The machine's stack id. It will use th $BITRISE_OSX_STACK_REV_ID environment var. |