Skip to content

Commit

Permalink
store cache in S3
Browse files Browse the repository at this point in the history
  • Loading branch information
henryjw committed May 3, 2024
1 parent eaedba6 commit 9c51556
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,18 @@ jobs:
with:
images: Build

- name: Cache
uses: actions/cache@v3
- name: Cache (S3)
uses: tespkg/actions-cache@v1
id: cache
with:
bucket: gha-docker-npm-caching-example
accessKey: ${{ vars.AWS_ACCESS_KEY }}
secretKey: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
path: |
pnpm
key: cache-${{ hashFiles('pnpm-lock.yaml') }}
key: gha-cache-example/cache-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
gha-cache-example/cache-
- name: inject cache into docker
uses: reproducible-containers/buildkit-cache-dance@v3.1.0
Expand Down

0 comments on commit 9c51556

Please sign in to comment.