Skip to content

Commit

Permalink
ci: modify cache usage
Browse files Browse the repository at this point in the history
  • Loading branch information
oilbeater committed Jul 20, 2020
1 parent 631a8dc commit de9493f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build-x86-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,22 @@ jobs:
- name: Docker Buildx
uses: crazy-max/ghaction-docker-buildx@v3

- name: Go mod cache
- name: Go Mod Cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Cache Docker layers
uses: actions/cache@v2
id: cache
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Unit test
run: |
Expand Down

0 comments on commit de9493f

Please sign in to comment.