-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Akihiro Suda <[email protected]>
- Loading branch information
1 parent
0db49bb
commit f898fc3
Showing
1 changed file
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |