Skip to content

build/bake: use query format for git context#150

Merged
tonistiigi merged 1 commit intomainfrom
git-query
Apr 1, 2026
Merged

build/bake: use query format for git context#150
tonistiigi merged 1 commit intomainfrom
git-query

Conversation

@crazy-max
Copy link
Copy Markdown
Member

@crazy-max crazy-max commented Mar 18, 2026

The build and bake workflows now enable query-style git context when computing the source context. The bake workflow also sets up Buildx before that helper is used so the context can be resolved in the same way as the build workflow.

Example: https://oci.dag.dev/?image=ghcr.io%2Fdocker%2Fgithub-builder-test%40sha256%3Ac460fef0460092229179846a3eab90b3fbc8860ede2929a13e5327651ceb439c

Provenance: https://oci.dag.dev/?blob=ghcr.io/docker/github-builder-test@sha256:7486a7663d84e055ac32eb3ba091200a38a2c4d4f7c48b8dd5deca5641cff8c8&mt=application%2Fvnd.in-toto%2Bjson&size=13965

  "predicate":{
    "buildDefinition":{
      "buildType":"https://github.com/moby/buildkit/blob/master/docs/attestations/slsa-definitions.md",
      "externalParameters":{
        "configSource":{
          "digest":{
            "sha1":"b7d6515f6f3eab38c6515ba2506b9d3f7c4b73af"
          },
          "path":"hello.Dockerfile",
          "uri":"https://github.com/docker/github-builder.git#refs/heads/git-query"
        },

@crazy-max crazy-max changed the title Git query build/bake: use query format for git context Mar 18, 2026
@crazy-max crazy-max force-pushed the git-query branch 5 times, most recently from f5167f1 to f2dff9a Compare March 19, 2026 12:11
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max requested a review from tonistiigi March 31, 2026 14:43
@crazy-max crazy-max marked this pull request as ready for review March 31, 2026 14:43
@crazy-max crazy-max requested a review from a team as a code owner March 31, 2026 14:43
@tonistiigi tonistiigi merged commit 489b6e8 into main Apr 1, 2026
317 checks passed
@crazy-max crazy-max deleted the git-query branch April 1, 2026 19:22
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