Skip to content

Commit

Permalink
build(bake): add cross-links to related topics
Browse files Browse the repository at this point in the history
Signed-off-by: David Karlsson <[email protected]>
  • Loading branch information
dvdksn committed Jun 17, 2024
1 parent 742e320 commit 60f26f2
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
4 changes: 4 additions & 0 deletions content/build/bake/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,7 @@ $ docker buildx bake

This executes the `default` group, which builds the `frontend` and `backend`
targets concurrently.

## Get started

To learn how to get started with Bake, head over to the [Bake introduction](./introduction.md).
9 changes: 7 additions & 2 deletions content/build/bake/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,10 @@ target "myapp" {
}
```

To see all the properties that can be set for a target, refer to the
[Bake file reference](/build/bake/reference/).
## Next steps

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/).
11 changes: 11 additions & 0 deletions content/build/bake/targets.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,14 @@ command.
```console
$ 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.
12 changes: 12 additions & 0 deletions content/build/bake/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 135 in content/build/bake/variables.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Docker.Acronyms] 'HCL' has no definition. Raw Output: {"message": "[Docker.Acronyms] 'HCL' has no definition.", "location": {"path": "content/build/bake/variables.md", "range": {"start": {"line": 135, "column": 64}}}, "severity": "WARNING"}
functions](./funcs.md#variables-in-functions)
- You can use variable values when evaluating expressions. See [Expression
evaluation](./expressions.md#expressions-with-variables)

0 comments on commit 60f26f2

Please sign in to comment.