Skip to content

Commit

Permalink
Recommend v1
Browse files Browse the repository at this point in the history
Signed-off-by: Akihiro Suda <[email protected]>
  • Loading branch information
AkihiroSuda committed Sep 13, 2023
1 parent 0db49bb commit f898fc3
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ jobs:
path: go-build-cache
key: ${{ runner.os }}-go-build-cache-${{ hashFiles('**/go.sum') }}
- name: inject/extract go-build-cache into docker
uses: reproducible-containers/buildkit-cache-dance@main
- name: inject go-build-cache into docker
uses: reproducible-containers/buildkit-cache-dance/[email protected]
with:
cache-source: go-build-cache
Expand All @@ -56,6 +56,20 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
- name: extract go-build-cache from docker
uses: reproducible-containers/buildkit-cache-dance/[email protected]
with:
cache-source: go-build-cache
```

Thanks to [Alexander Pravdin](https://github.com/speller) for the basic idea in [this comment](https://github.com/moby/buildkit/issues/1512).

## About v2.x

v2.x unifies `reproducible-containers/buildkit-cache-dance/inject` and `reproducible-containers/buildkit-cache-dance/extract`
into a single `reproducible-containers/buildkit-cache-dance` action.

However, v2.x seems unstable:
- #1

0 comments on commit f898fc3

Please sign in to comment.