mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 23:18:21 +00:00
Improve output of playwright-screenshots script (#33098)
* Improve output of playwright-screenshots script * Address review feedback
This commit is contained in:
committed by
GitHub
parent
4c4bfcde7e
commit
b860a3864d
@@ -19,8 +19,15 @@ WS_PORT=3000
|
|||||||
PW_VERSION=$(pnpm --silent -- playwright --version | awk '{print $2}')
|
PW_VERSION=$(pnpm --silent -- playwright --version | awk '{print $2}')
|
||||||
IMAGE_NAME="ghcr.io/element-hq/element-web/playwright-server:$PW_VERSION"
|
IMAGE_NAME="ghcr.io/element-hq/element-web/playwright-server:$PW_VERSION"
|
||||||
|
|
||||||
# Pull the image, failing that build the image
|
# If the image exists in the repository, pull it; otherwise, build it.
|
||||||
docker pull "$IMAGE_NAME" 2>/dev/null || build_image "$IMAGE_NAME"
|
#
|
||||||
|
# (This explicit test gives the user clearer progress info than just
|
||||||
|
# `docker pull 2>/dev/null || build_image`.)
|
||||||
|
if docker manifest inspect "$IMAGE_NAME" &>/dev/null; then
|
||||||
|
docker pull "$IMAGE_NAME"
|
||||||
|
else
|
||||||
|
build_image "$IMAGE_NAME"
|
||||||
|
fi
|
||||||
|
|
||||||
# Start the playwright-server in docker
|
# Start the playwright-server in docker
|
||||||
CONTAINER=$(docker run --network=host -v /tmp:/tmp --rm -d -e PORT="$WS_PORT" "$IMAGE_NAME")
|
CONTAINER=$(docker run --network=host -v /tmp:/tmp --rm -d -e PORT="$WS_PORT" "$IMAGE_NAME")
|
||||||
|
|||||||
Reference in New Issue
Block a user