Use the env file when buiding playwright common docker (#33483)
* Use the env file when buiding playwrigt common docker The docker builds failed due to the variable for being available * Also we surely don't need this twice
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
ARG PLAYWRIGHT_VERSION
|
|
||||||
FROM mcr.microsoft.com/playwright:v${PLAYWRIGHT_VERSION}-noble
|
|
||||||
# Expose the argument to this build stage
|
# Expose the argument to this build stage
|
||||||
ARG PLAYWRIGHT_VERSION
|
ARG PLAYWRIGHT_VERSION
|
||||||
|
FROM mcr.microsoft.com/playwright:v${PLAYWRIGHT_VERSION}-noble
|
||||||
|
|
||||||
WORKDIR /work
|
WORKDIR /work
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
"platforms": ["linux/amd64", "linux/arm64"],
|
"platforms": ["linux/amd64", "linux/arm64"],
|
||||||
"provenance": "true",
|
"provenance": "true",
|
||||||
"sbom": true,
|
"sbom": true,
|
||||||
|
"env-file": ["{projectRoot}/.env.docker:build"],
|
||||||
"build-args": ["PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION"],
|
"build-args": ["PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION"],
|
||||||
"context": "{projectRoot}",
|
"context": "{projectRoot}",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
|||||||
Reference in New Issue
Block a user