mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-21 16:23:56 +08:00
Support AWS S3 and compatible software
This commit is contained in:
parent
72d1e4fdff
commit
3922a6a550
10 changed files with 122536 additions and 26393 deletions
29
README.md
29
README.md
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue