Support AWS S3 and compatible software

This commit is contained in:
whywaita 2022-02-14 18:51:41 +09:00
parent 72d1e4fdff
commit 3922a6a550
No known key found for this signature in database
GPG key ID: 410FE9327D2F4F0E
10 changed files with 122536 additions and 26393 deletions

View file

@ -1,3 +1,32 @@
# whywaita/actions-cache-s3
`whywaita/actions-cache-s3` is a forked Action from [@actions/cache](https://github.com/actions/cache).
This Action provides Amazon Web Services S3 backend (and compatible software) for @actions/cache.
## Usage
```yaml
- name: Cache multiple paths
uses: whywaita/actions-cache-s3@main
with:
path: |
~/cache
!~/cache/exclude
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
restore-keys: |
${{ runner.os }}-go-
aws-s3-bucket: ${{ secrets.AWS_S3_BUCKET_NAME }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1 # Optional
aws-endpoint: https://example.com # Optional
aws-s3-bucket-endpoint: false # Optional
aws-s3-force-path-style: true # Optional
```
Please see [actions.yml](https://github.com/whywaita/actions-cache-s3/blob/main/action.yml) about input parameters.
# cache
This action allows caching dependencies and build outputs to improve workflow execution time.