From ba3682074b389be94dec58c04de1fcf2d18644e9 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 20 May 2026 12:20:54 +0100 Subject: [PATCH] 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. --- packages/playwright-common/project.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/playwright-common/project.json b/packages/playwright-common/project.json index bf175aa1fd..77f9990b89 100644 --- a/packages/playwright-common/project.json +++ b/packages/playwright-common/project.json @@ -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"],