From 5689c9d9f539c8533bbce0532cabe0d33ea4ea7a Mon Sep 17 00:00:00 2001 From: Alex Godoy Wolff <13754094+alexgwolff@users.noreply.github.com> Date: Sun, 3 Aug 2025 03:15:28 -0300 Subject: [PATCH 1/2] add usage examples for building Bake files from remote Git and HTTP sources --- .../manuals/build/bake/remote-definition.md | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/content/manuals/build/bake/remote-definition.md b/content/manuals/build/bake/remote-definition.md index 15b1769f4ac..0f566da7283 100644 --- a/content/manuals/build/bake/remote-definition.md +++ b/content/manuals/build/bake/remote-definition.md @@ -6,15 +6,25 @@ keywords: build, buildx, bake, file, remote, git, http You can build Bake files directly from a remote Git repository or HTTPS URL: +Using Git HTTPS + +```console +docker buildx bake "https://github.com/docker/cli.git#v20.10.11" --print +``` + +Using 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 +docker buildx bake "git@github.com:docker/cli.git#v20.10.11" --print ``` +Using Raw HTTP/HTTPS + +```console +docker buildx bake "https://raw.githubusercontent.com/docker/cli/v20.10.11/docker-bake.hcl" --print +``` + + 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 From a36eed4f43f16019449e9375984b96d1f1c65083 Mon Sep 17 00:00:00 2001 From: Alex Godoy Wolff <13754094+alexgwolff@users.noreply.github.com> Date: Sun, 3 Aug 2025 13:25:53 -0300 Subject: [PATCH 2/2] Update remote-definition.md --- content/manuals/build/bake/remote-definition.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/manuals/build/bake/remote-definition.md b/content/manuals/build/bake/remote-definition.md index 0f566da7283..fe5ac80a9df 100644 --- a/content/manuals/build/bake/remote-definition.md +++ b/content/manuals/build/bake/remote-definition.md @@ -12,13 +12,13 @@ Using Git HTTPS docker buildx bake "https://github.com/docker/cli.git#v20.10.11" --print ``` -Using GIT SSH +Using Git SSH ```console docker buildx bake "git@github.com:docker/cli.git#v20.10.11" --print ``` -Using Raw HTTP/HTTPS +Using HTTP/HTTPS ```console docker buildx bake "https://raw.githubusercontent.com/docker/cli/v20.10.11/docker-bake.hcl" --print