Add cache input to bakery build workflows#525
Merged
Conversation
Test Results1 547 tests 1 547 ✅ 8m 10s ⏱️ Results for commit 0ad0c22. ♻️ This comment has been updated with latest results. |
Adds a `cache` boolean input (default true) to bakery-build.yml, bakery-build-native.yml, and bakery-build-pr.yml. When set to false, the `--cache-registry` flag is omitted from bakery build invocations. The posit-dev/images-specialized repository cannot use registry caching because its caches exceed 10GB. Attempting to create caches there silently fails during builds and loudly fails on cleanup. This input lets that repo's workflow calls disable caching. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0c88de0 to
0ad0c22
Compare
bschwedler
approved these changes
May 14, 2026
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.
Summary
cacheboolean input (defaulttrue) tobakery-build.yml,bakery-build-native.yml, andbakery-build-pr.yml.cache: false, the--cache-registryflag is omitted from bakery build invocations.--temp-registryis left untouched in the native workflow because it's required for the merge flow, not caching.bakery-build-pr.yml, the new input combines with the existing fork check — caching applies only for non-fork PRs and whencacheis true.Motivation
The
posit-dev/images-specializedrepository cannot use registry caching: its caches exceed 10GB, so cache creation silently fails during builds and loudly fails on cleanup. This input lets that repo's workflow calls disable caching.Test plan
cache: falseproduces abakery buildinvocation without--cache-registry.bakery-build-pr.ymlstill skips caching on fork PRs regardless of the input.🤖 Generated with Claude Code