Bust docker cache for uv/opencode installs - #37
Closed
flavour wants to merge 1 commit into
Closed
Conversation
chriswritescode-dev
added a commit
that referenced
this pull request
Jan 11, 2026
Alternative approach to PR #37 - instead of busting cache on every build, use git ls-remote to fetch latest version tags and pass them as build args. Docker layer only rebuilds when tool versions actually change. - Move uv install from base to runner stage alongside opencode - Add UV_VERSION and OPENCODE_VERSION build args as cache keys - Fetch versions via git ls-remote (no API rate limits) - Log installed versions in build output for debugging Ref: #37
Contributor
|
This PR can be closed. |
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.
The OpenCode & UV versions in the released image aren't being updated.
This is especially annoying for OpenCode, e.g. I have removed by custom implementation of Agent Skills now that it is native.
This is 1 way of handling that...does mean a less nicely-layered image, but avoids needing to manually maintain pinned versions.