Skip to content

feat: add optional BuildKit cache-from/cache-to inputs#266

Merged
DeepDiver1975 merged 1 commit into
masterfrom
feat/buildkit-gha-cache
May 6, 2026
Merged

feat: add optional BuildKit cache-from/cache-to inputs#266
DeepDiver1975 merged 1 commit into
masterfrom
feat/buildkit-gha-cache

Conversation

@DeepDiver1975
Copy link
Copy Markdown
Contributor

Summary

  • Adds two optional inputs docker-cache-from and docker-cache-to to the docker-build reusable workflow
  • Both inputs are wired into the docker/build-push-action build step (cache-from+cache-to) and the publish step (cache-from only — no write on publish)
  • Defaults to empty string, so all existing callers are unaffected

Test plan

  • Verify existing callers (ubuntu images) still build without setting the new inputs
  • Verify a caller passing type=gha / type=gha,mode=max gets BuildKit layer cache hits on re-runs

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
@DeepDiver1975 DeepDiver1975 merged commit f716da6 into master May 6, 2026
5 checks passed
@DeepDiver1975 DeepDiver1975 deleted the feat/buildkit-gha-cache branch May 6, 2026 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants