build(bake): add cross-links to related topics

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2024-06-17 14:34:16 +02:00
parent e5d2461897
commit ed78769905
4 changed files with 34 additions and 2 deletions

View File

@ -55,3 +55,7 @@ $ docker buildx bake
This executes the `default` group, which builds the `frontend` and `backend` This executes the `default` group, which builds the `frontend` and `backend`
targets concurrently. targets concurrently.
## Get started
To learn how to get started with Bake, head over to the [Bake introduction](./introduction.md).

View File

@ -82,5 +82,10 @@ target "myapp" {
} }
``` ```
To see all the properties that can be set for a target, refer to the ## Next steps
[Bake file reference](/build/bake/reference/).
To learn more about using Bake, see the following topics:
- Learn how to define and use [targets](./targets.md) in Bake
- To see all the properties that can be set for a target, refer to the
[Bake file reference](/build/bake/reference/).

View File

@ -93,3 +93,14 @@ command.
```console ```console
$ docker buildx bake all $ docker buildx bake all
``` ```
## Additional resources
Refer to the following pages to learn more about Bake's features:
- Learn how to use [variables](./variables.md) in Bake to make your build
configuration more flexible.
- Learn how you can use matrices to build multiple images with different
configurations in [Matrices](./matrices.md).
- Head to the [Bake file reference](/build/bake/reference/) to learn about all
the properties you can set in a Bake file, and its syntax.

View File

@ -124,3 +124,15 @@ $ docker buildx bake -f vars.hcl -f docker-bake.hcl --print app
} }
} }
``` ```
## Additional resources
Here are some additional resources that show how you can use variables in Bake:
- You can override `variable` values using environment variables. See
[Overriding configurations](./overrides.md#environment-variables) for more
information.
- You can refer to and use global variables in functions. See [HCL
functions](./funcs.md#variables-in-functions)
- You can use variable values when evaluating expressions. See [Expression
evaluation](./expressions.md#expressions-with-variables)