Skip to content

Add cache input to bakery build workflows#525

Merged
bschwedler merged 1 commit into
mainfrom
workflow-caching-setting
May 14, 2026
Merged

Add cache input to bakery build workflows#525
bschwedler merged 1 commit into
mainfrom
workflow-caching-setting

Conversation

@ianpittwood
Copy link
Copy Markdown
Contributor

Summary

  • Adds a cache boolean input (default true) to bakery-build.yml, bakery-build-native.yml, and bakery-build-pr.yml.
  • When cache: false, the --cache-registry flag is omitted from bakery build invocations. --temp-registry is left untouched in the native workflow because it's required for the merge flow, not caching.
  • In bakery-build-pr.yml, the new input combines with the existing fork check — caching applies only for non-fork PRs and when cache is true.

Motivation

The posit-dev/images-specialized repository 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

  • Verify default behavior (cache enabled) is unchanged in an existing caller repo.
  • Verify a caller passing cache: false produces a bakery build invocation without --cache-registry.
  • Verify bakery-build-pr.yml still skips caching on fork PRs regardless of the input.

🤖 Generated with Claude Code

@ianpittwood ianpittwood requested a review from bschwedler as a code owner May 14, 2026 15:11
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 14, 2026

Test Results

1 547 tests   1 547 ✅  8m 10s ⏱️
    1 suites      0 💤
    1 files        0 ❌

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>
@ianpittwood ianpittwood force-pushed the workflow-caching-setting branch from 0c88de0 to 0ad0c22 Compare May 14, 2026 18:36
@bschwedler bschwedler added this pull request to the merge queue May 14, 2026
Merged via the queue into main with commit 009d8e8 May 14, 2026
23 checks passed
@bschwedler bschwedler deleted the workflow-caching-setting branch May 14, 2026 19:42
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.

2 participants