Skip to content

ci: do not fail builds when the Docker layer cache is unavailable - #94

Merged
mattmattox merged 1 commit into
mainfrom
ci/cache-to-ignore-error
Nov 9, 2026
Merged

mattmattox merged 1 commit into
mainfrom
ci/cache-to-ignore-error

Conversation

@mattmattox

Copy link
Copy Markdown
Contributor

Adds ignore-error=true to every cache-to: type=gha in this repo.

Without it, BuildKit fails the whole build when the cache backend is unavailable, including a failed cache export after the image has built. The cache is an optimisation, so losing it should only make the build slower.

The self-hosted-linux runner pool is moving to a self-hosted Actions cache, which adds a backend that can be down. The flag also covers an outage of GitHub's own cache.

No other change. Cache behaviour is the same while the backend is healthy.

Add ignore-error=true to cache-to: type=gha. BuildKit otherwise fails the build on a cache export error, so a cache backend outage would turn into a red build.
@mattmattox
mattmattox merged commit 5b2be7f into main Nov 9, 2026
9 checks passed
@mattmattox
mattmattox deleted the ci/cache-to-ignore-error branch November 9, 2026 19:40
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.

1 participant