You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version of Docker Buildx to install based on the [GitHub Releases](https://github.com/docker/buildx/releases). If not specified, uses the version already installed in the environment.
18
+
19
+
For example:
20
+
```yaml
21
+
buildx-version: 'v0.29.1'
22
+
```
23
+
24
+
#### builder-name
25
+
26
+
Name for the Docker buildx builder instance. Defaults to `nx-agents-builder`.
27
+
28
+
For example:
29
+
```yaml
30
+
builder-name: 'my-custom-builder'
31
+
```
32
+
33
+
#### driver-opts
34
+
35
+
Comma-separated driver options for the docker-container driver. See [Docker documentation](https://docs.docker.com/build/builders/drivers/docker-container/) for available options.
Full contents of the `buildkitd.toml` configuration file.
45
+
46
+
This allows for complete customization of BuildKit configuration including registry mirrors, custom CA certificates, network settings, and more. See [BuildKit TOML configuration documentation](https://github.com/moby/buildkit/blob/master/docs/buildkitd.toml.md) for all available options.
47
+
48
+
**Using the literal block scalar (`|`):**
49
+
```yaml
50
+
buildkit-config: |
51
+
debug = true
52
+
[worker.oci]
53
+
max-parallelism = 4
54
+
```
55
+
56
+
## What This Step Does
57
+
58
+
1. **Installs Docker Buildx** (if `buildx-version` is specified): Downloads and installs the specified version of Docker Buildx for your system architecture (amd64, arm64, or arm-v7)
59
+
2. **Configures BuildKit**: Creates BuildKit configuration to support registry caching if enabled
60
+
3. **Creates Builder**: Sets up a new docker-container driver builder with the specified configuration
61
+
4. **Sets Environment Variable**: Exports `BUILDX_BUILDER` environment variable for use in subsequent workflow steps
62
+
63
+
## Environment Variables
64
+
65
+
After this step completes, the following environment variable is available for subsequent steps:
66
+
67
+
- `BUILDX_BUILDER`: The name of the configured buildx builder instance
0 commit comments