Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions docs/bake-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1350,11 +1350,17 @@ to define them.

### Use environment variable as default

You can set a Bake variable to use the value of an environment variable as a default value:
If an environment variable exists with the same name as a declared Bake
variable, Bake uses that environment variable value instead of the declared
default.

To disable this environment-based variable lookup, set
`BUILDX_BAKE_DISABLE_VARS_ENV_LOOKUP=1`.


```hcl
variable "HOME" {
default = "$HOME"
default = "/root"
}
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems it got removed by mistake

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed feedback . PTAL 🙏


Expand Down
Loading