mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: make local docker build work on branch (#17896)
Branch does not pass `isDevelopmentMode` check because it does not have a version ending with `-next`. Therefore, `env.PWTEST_DOCKER_BASE_IMAGE` is ignored which leads to the pull of non-existent image.
This commit is contained in:
parent
c81af6b2bd
commit
51a8807f6b
@ -76,7 +76,7 @@ async function buildPlaywrightImage() {
|
|||||||
await checkDockerEngineIsRunningOrDie();
|
await checkDockerEngineIsRunningOrDie();
|
||||||
|
|
||||||
const isDevelopmentMode = getPlaywrightVersion().includes('next');
|
const isDevelopmentMode = getPlaywrightVersion().includes('next');
|
||||||
let baseImageName = `mcr.microsoft.com/playwright:v${getPlaywrightVersion()}-${VRT_IMAGE_DISTRO}`;
|
let baseImageName = process.env.PWTEST_DOCKER_BASE_IMAGE || `mcr.microsoft.com/playwright:v${getPlaywrightVersion()}-${VRT_IMAGE_DISTRO}`;
|
||||||
// 1. Build or pull base image.
|
// 1. Build or pull base image.
|
||||||
if (isDevelopmentMode) {
|
if (isDevelopmentMode) {
|
||||||
// Use our docker build scripts in development mode!
|
// Use our docker build scripts in development mode!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user