build: allow client side querystring resolution #3415
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.
For the cases where frontend/buildkit doesn't support new Git Querystring format, allow resolving the URL into LLB on client side and then build from input.
Note that this produces slightly different provenance where context is not set as string, so added opt-in via environment variable for now.
We will likely use it in Docker Github Actions so that we can use checksum and ref together in all the builds by default.
Example builds:
https://oci.dag.dev/?blob=docker.io/tonistiigi/dockerfile@sha256:12461cdf7db06fb3130cee0fb963333712d63dd849929f194e358609b05e98d0&mt=application%2Fvnd.in-toto%2Bjson&size=1744
https://oci.dag.dev/?blob=docker.io/tonistiigi/dockerfile@sha256:29d88a9d397e45c98e475225bd510622b4eef65bdf9274729ddb166ce75ee91e&mt=application%2Fvnd.in-toto%2Bjson&size=1544