Determine default cache map from Dockerfile#49
Merged
AkihiroSuda merged 7 commits intoreproducible-containers:mainfrom May 3, 2025
Merged
Determine default cache map from Dockerfile#49AkihiroSuda merged 7 commits intoreproducible-containers:mainfrom
AkihiroSuda merged 7 commits intoreproducible-containers:mainfrom
Conversation
Signed-off-by: bennesp <bennesp@users.noreply.github.com>
Signed-off-by: bennesp <bennesp@users.noreply.github.com>
8a21fcd to
ff982a4
Compare
omus
approved these changes
Apr 22, 2025
Signed-off-by: bennesp <bennesp@users.noreply.github.com>
Signed-off-by: bennesp <bennesp@users.noreply.github.com>
395734c to
9b9fed1
Compare
Signed-off-by: bennesp <bennesp@users.noreply.github.com>
Signed-off-by: bennesp <bennesp@users.noreply.github.com>
Signed-off-by: bennesp <bennesp@users.noreply.github.com>
dba22cf to
429cead
Compare
Contributor
Author
|
@AkihiroSuda do you think you could kindly take a look at this PR? 🙏 |
Member
|
Next time please consider squashing commits |
Contributor
Author
|
Thank you for the quick response, I will squash next time! |
github-actions Bot
pushed a commit
to starkayc/patchy
that referenced
this pull request
Mar 12, 2026
…it-cache-dance action to v3.2.0 (#23) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [https://github.com/reproducible-containers/buildkit-cache-dance](https://github.com/reproducible-containers/buildkit-cache-dance) | action | minor | `v3.1.0` -> `v3.2.0` | --- ### Release Notes <details> <summary>reproducible-containers/buildkit-cache-dance (https://github.com/reproducible-containers/buildkit-cache-dance)</summary> ### [`v3.2.0`](https://github.com/reproducible-containers/buildkit-cache-dance/releases/tag/v3.2.0) [Compare Source](reproducible-containers/buildkit-cache-dance@v3.1.2...v3.2.0) #### What's Changed - Allow overriding container image by [@​relu](https://github.com/relu) in reproducible-containers/buildkit-cache-dance#44 - Added support for running with different builder by [@​ty2](https://github.com/ty2) in reproducible-containers/buildkit-cache-dance#45 - Determine default cache map from Dockerfile by [@​bennesp](https://github.com/bennesp) in reproducible-containers/buildkit-cache-dance#49 #### New Contributors - [@​relu](https://github.com/relu) made their first contribution in reproducible-containers/buildkit-cache-dance#44 - [@​ty2](https://github.com/ty2) made their first contribution in reproducible-containers/buildkit-cache-dance#45 - [@​bennesp](https://github.com/bennesp) made their first contribution in reproducible-containers/buildkit-cache-dance#49 **Full Changelog**: reproducible-containers/buildkit-cache-dance@v3.1.2...v3.2.0 ### [`v3.1.2`](https://github.com/reproducible-containers/buildkit-cache-dance/releases/tag/v3.1.2) [Compare Source](reproducible-containers/buildkit-cache-dance@v3.1.1...v3.1.2) #### What's Changed - Fix not preserving uid and/or gid by [@​mabrikan](https://github.com/mabrikan) in reproducible-containers/buildkit-cache-dance#35 - Use sudo to clear cache source during extraction by [@​rose-m](https://github.com/rose-m) in reproducible-containers/buildkit-cache-dance#37 #### New Contributors - [@​mabrikan](https://github.com/mabrikan) made their first contribution in reproducible-containers/buildkit-cache-dance#35 - [@​rose-m](https://github.com/rose-m) made their first contribution in reproducible-containers/buildkit-cache-dance#37 **Full Changelog**: reproducible-containers/buildkit-cache-dance@v3.1.1...v3.1.2 ### [`v3.1.1`](https://github.com/reproducible-containers/buildkit-cache-dance/releases/tag/v3.1.1) [Compare Source](reproducible-containers/buildkit-cache-dance@v3.1.0...v3.1.1) #### What's Changed - Ensure scratch directory exists when calling extractCache by [@​Chagui-](https://github.com/Chagui-) in reproducible-containers/buildkit-cache-dance#29 - Do not extract cache on job failure by [@​borchero](https://github.com/borchero) in reproducible-containers/buildkit-cache-dance#32 #### New Contributors - [@​Chagui-](https://github.com/Chagui-) made their first contribution in reproducible-containers/buildkit-cache-dance#29 - [@​borchero](https://github.com/borchero) made their first contribution in reproducible-containers/buildkit-cache-dance#32 **Full Changelog**: reproducible-containers/buildkit-cache-dance@v3.1.0...v3.1.1 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC4yOS4xIiwidXBkYXRlZEluVmVyIjoiNDAuMjkuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Reviewed-on: https://git.nadeko.net/Fijxu/file-uploader-crystal/pulls/23 Co-authored-by: Renovate Bot <git@nadeko.net> Co-committed-by: Renovate Bot <git@nadeko.net>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #48 (thank you @omus for sharing a very useful code snippet)
This PR allows users to avoid specifying cache-map: the cache-map will be automatically created by inspecting the AST of the Dockerfile. Of course, users can continue specifying cache-map, in situations where users need more control.
Users can specify a Dockerfile of their choice with the
dockerfileoption.For each cache mount, the respective generated cache-map entry is the following:
idof the cache mount if specified, otherwise thetargetof the cache mountExample:
This dockerfile will generate the following cache-map:
{ "/tmp/cache": { "id": "/tmp/cache", "target": "/var/cache-target" }, "cache1": { "id": "cache1", "target": "/var/cache-target" }, "cache2": { "id": "cache2", "target": "/var/cache-target" }, "cache3": { "id": "cache3", "target": "/var/cache-target" } }