https://github.com/alephao/bitrise-step-s3-cache-push
A bitrise step to store your cache in a s3 bucket.
https://github.com/alephao/bitrise-step-s3-cache-push
aws aws-s3 bitrise ci ios s3
Last synced: 6 months ago
JSON representation
A bitrise step to store your cache in a s3 bucket.
- Host: GitHub
- URL: https://github.com/alephao/bitrise-step-s3-cache-push
- Owner: alephao
- License: mit
- Created: 2021-04-16T22:23:08.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-20T17:34:02.000Z (about 4 years ago)
- Last Synced: 2024-06-21T18:01:19.666Z (over 1 year ago)
- Topics: aws, aws-s3, bitrise, ci, ios, s3
- Language: Go
- Homepage:
- Size: 769 KB
- Stars: 4
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# S3 Cache Push
A bitrise step to store your cache in a s3 bucket with custom keys.
Should be used with [S3 Cache Pull](https://github.com/alephao/bitrise-step-s3-cache-pull)
### Inputs
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_path**|The path to the file or folder you want to cache. E.g.: `./Carthage/Build`
**cache_key**|The key that will be used to restore the cache later. E.g.: `carthage-{{ branch }}-{{ checksum "Cartfile.resolved" }}`#### Cache Key
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.