diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 964e83c77bb..8f2a467dc4a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -188,8 +188,9 @@ jobs: - name: Build dummy test_data and static_assets images run: | echo -e "FROM scratch" > Dockerfile.empty - docker build -t test_data -f Dockerfile.empty . - docker build -t static_assets -f Dockerfile.empty . + docker build -t test_data - &2 + exit 1 + fi + echo "Detected Playwright version: $PLAYWRIGHT_VERSION" + echo "PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION" >> $GITHUB_ENV + + - name: Build Playwright container + run: | + docker build --build-arg PLAYWRIGHT_VERSION=v$PLAYWRIGHT_VERSION \ + --build-arg FRONT_TESTS_IMAGE=${{ fromJSON(needs.build.outputs.stable_tags).front-tests }} \ + -t osrd-playwright:latest \ + -