build(bake): rename contexts file

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2024-06-17 13:38:27 +02:00
parent db9a563bfc
commit b0e832b0c7
3 changed files with 7 additions and 6 deletions

View File

@ -1,11 +1,12 @@
--- ---
title: Defining additional build contexts and linking targets title: Using Bake with additional contexts
description: | description: |
Additional contexts are useful when you want to pin image versions, Additional contexts are useful when you want to pin image versions,
or reference the output of other targets or reference the output of other targets
keywords: build, buildx, bake, buildkit, hcl keywords: build, buildx, bake, buildkit, hcl
aliases: aliases:
- /build/customize/bake/build-contexts/ - /build/customize/bake/build-contexts/
- /build/bake/build-contexts/
--- ---
In addition to the main `context` key that defines the build context, each In addition to the main `context` key that defines the build context, each
@ -60,9 +61,9 @@ target "app" {
} }
``` ```
## Using a result of one target as a base image in another target ## Using a target as a build context
To use a result of one target as a build context of another, specity the target To use a result of one target as a build context of another, specify the target
name with `target:` prefix. name with `target:` prefix.
```dockerfile ```dockerfile

View File

@ -605,7 +605,7 @@ For more details, see the complete release notes in the [Buildx GitHub repositor
- Build command now accepts `--build-context` flag to [define additional named build contexts](/reference/cli/docker/buildx/build/#build-context) - Build command now accepts `--build-context` flag to [define additional named build contexts](/reference/cli/docker/buildx/build/#build-context)
for your builds. [docker/buildx#904](https://github.com/docker/buildx/issues/904) for your builds. [docker/buildx#904](https://github.com/docker/buildx/issues/904)
- Bake definitions now support [defining dependencies between targets](bake/build-contexts.md) - Bake definitions now support [defining dependencies between targets](bake/contexts.md)
and using the result of one target in another build. and using the result of one target in another build.
[docker/buildx#928](https://github.com/docker/buildx/issues/928), [docker/buildx#928](https://github.com/docker/buildx/issues/928),
[docker/buildx#965](https://github.com/docker/buildx/issues/965), [docker/buildx#965](https://github.com/docker/buildx/issues/965),

View File

@ -1965,12 +1965,12 @@ Manuals:
title: Functions title: Functions
- path: /build/bake/matrices/ - path: /build/bake/matrices/
title: Matrices title: Matrices
- path: /build/bake/contexts/
title: Contexts
- path: /build/bake/overrides/ - path: /build/bake/overrides/
title: Overriding configuration title: Overriding configuration
- path: /build/bake/reference/ - path: /build/bake/reference/
title: Bake file reference title: Bake file reference
- path: /build/bake/build-contexts/
title: Build contexts and linking targets
- path: /build/bake/compose-file/ - path: /build/bake/compose-file/
title: Building from Compose file title: Building from Compose file
- path: /build/bake/remote-definition/ - path: /build/bake/remote-definition/