From a11c11fbbb3c4c7e6bdcda58b706c634e2e06b3c Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Thu, 17 Oct 2024 10:49:04 +0200 Subject: [PATCH] build(bake): escape variable interpolation in bake definition Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- content/manuals/build/bake/variables.md | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/content/manuals/build/bake/variables.md b/content/manuals/build/bake/variables.md index 1dfa803900df..b584cc1483a2 100644 --- a/content/manuals/build/bake/variables.md +++ b/content/manuals/build/bake/variables.md @@ -78,6 +78,35 @@ $ docker buildx bake --print } ``` +## Escape variable interpolation + +If you want to bypass variable interpolation when parsing the Bake definition, +use double dollar signs (`$${VARIABLE}`). + +```hcl +target "default" { + dockerfile-inline = <