Another attempt at fixing the docker bake error (#33535)

Turns out the .env.docker:build is read automatically by nx when running
that project step, so it should be in the env. It might just be that using
the `x=$x` format means docker gets the $ literally because no shell is involved
here, so we need to use the plain `x` format so docker knows to take it from
the environment itself.

That's the theory, anyway.
This commit is contained in:
David Baker
2026-05-20 12:20:54 +01:00
committed by GitHub
parent b5aa339243
commit ba3682074b
+1 -2
View File
@@ -32,8 +32,7 @@
"platforms": ["linux/amd64", "linux/arm64"],
"provenance": "true",
"sbom": true,
"env-file": ["{projectRoot}/.env.docker:build"],
"build-args": ["PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION"],
"build-args": ["PLAYWRIGHT_VERSION"],
"context": "{projectRoot}",
"metadata": {
"images": ["ghcr.io/element-hq/element-web/playwright-server"],