Skip to content

build/bake: enable fetch-by-commit for git contexts - #204

Merged
crazy-max merged 1 commit into
mainfrom
fetch-by-commit
May 20, 2026
Merged

build/bake: enable fetch-by-commit for git contexts#204
crazy-max merged 1 commit into
mainfrom
fetch-by-commit

Conversation

@crazy-max

@crazy-maxcrazy-max commented May 18, 2026

Copy link
Copy Markdown
Member

fixes#194

The workflow scripts now pass fetch-by-commit=true as a Git context attribute for generated build and bake source contexts, except when the workflow ref is a tag. This keeps the symbolic ref in the Git context URL while pinning the checksum.

@crazy-max
crazy-maxforce-pushed the fetch-by-commit branch 2 times, most recently from 29df631 to 7ac9361CompareMay 18, 2026 12:24
@crazy-maxcrazy-max changed the title build/bake: enable fetch-by-commit for generated git contextsbuild/bake: enable fetch-by-commit for git contextsMay 18, 2026
@crazy-max
crazy-maxforce-pushed the fetch-by-commit branch 2 times, most recently from 81703b8 to 3c15c58CompareMay 20, 2026 15:28
@crazy-max
crazy-max requested a review from tonistiigiMay 20, 2026 15:29
@crazy-max
crazy-max marked this pull request as ready for review May 20, 2026 15:30
@crazy-max
crazy-max requested a review from a team as a code ownerMay 20, 2026 15:30
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max
crazy-max merged commit 0738332 into mainMay 20, 2026
183 checks passed
@crazy-max
crazy-max deleted the fetch-by-commit branch May 20, 2026 16:41
Sign up for freeto 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.

Pushing to a branch while a workflow build have been queued on the same branch makes it fail

2 participants

@crazy-max@tonistiigi