-
Notifications
You must be signed in to change notification settings - Fork 7.8k
add usage examples for building Bake files from remote Git and HTTP sources, and Raw HTTPS #23196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
+1
−1
Closed
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5689c9d
add usage examples for building Bake files from remote Git and HTTP s…
alexgwolff a36eed4
Update remote-definition.md
alexgwolff 7c49aac
Update remote-definition.md
alexgwolff 94baf71
Update remote-definition.md
alexgwolff 5a711dd
Update content/manuals/build/bake/remote-definition.md
alexgwolff d122db2
Update remote-definition.md
alexgwolff File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,15 +6,33 @@ keywords: build, buildx, bake, file, remote, git, http | |
|
||
You can build Bake files directly from a remote Git repository or HTTPS URL: | ||
|
||
{{<tabs>}} | ||
|
||
{{<tab name="Git HTTPS">}} | ||
|
||
```console | ||
docker buildx bake "https://github.com/docker/cli.git#v20.10.11" --print | ||
``` | ||
|
||
{{</tab>}} | ||
|
||
{{<tab name="Git SSH">}} | ||
|
||
```console | ||
$ docker buildx bake "https://github.com/docker/cli.git#v20.10.11" --print | ||
#1 [internal] load git source https://github.com/docker/cli.git#v20.10.11 | ||
#1 0.745 e8f1871b077b64bcb4a13334b7146492773769f7 refs/tags/v20.10.11 | ||
#1 2.022 From https://github.com/docker/cli | ||
#1 2.022 * [new tag] v20.10.11 -> v20.10.11 | ||
#1 DONE 2.9s | ||
alexgwolff marked this conversation as resolved.
Show resolved
Hide resolved
|
||
docker buildx bake "[email protected]:docker/cli.git#v20.10.11" --print | ||
alexgwolff marked this conversation as resolved.
Show resolved
Hide resolved
|
||
``` | ||
|
||
{{</tab>}} | ||
|
||
{{<tab name="HTTP/HTTPS">}} | ||
|
||
```console | ||
docker buildx bake "https://raw.githubusercontent.com/docker/cli/v20.10.11/docker-bake.hcl" --print | ||
alexgwolff marked this conversation as resolved.
Show resolved
Hide resolved
|
||
``` | ||
{{</tab>}} | ||
|
||
{{</tabs>}} | ||
|
||
This fetches the Bake definition from the specified remote location and | ||
executes the groups or targets defined in that file. If the remote Bake | ||
definition doesn't specify a build context, the context is automatically set to | ||
|
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.
Uh oh!
There was an error while loading. Please reload this page.