Skip to content

Commit

Permalink
build: use a QA image to not run chrome docker container in loki dock…
Browse files Browse the repository at this point in the history
…er container
  • Loading branch information
tkajtoch committed May 13, 2024
1 parent 8d3b7b0 commit b6a0eb2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ steps:
# Use spot instances
# https://cloud.google.com/spot-vms
preemptible: true
imageProject: "elastic-images-qa"
image: "family/eui-ubuntu-2204"
retry:
automatic:
- exit_status: '-1'
Expand Down
16 changes: 5 additions & 11 deletions .buildkite/scripts/visual_regression/run_loki.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,8 @@ else
exit 1
fi

docker run \
-i \
--rm \
--env GIT_COMMITTER_NAME=test \
--env GIT_COMMITTER_EMAIL=test \
--env HOME=/tmp \
--user="$(id -u):$(id -g)" \
--volume="$(pwd):/app" \
--workdir=/app \
"$DOCKER_BASE_IMAGE" \
bash -c "yarn && yarn --cwd packages/eui test-visual-regression --reactUri $storybook_url"
# Install dependencies
yarn

# Run Loki targeting the built and deployed Storybook instance
yarn --cwd packages/eui test-visual-regression --reactUri "${storybook_url}"

0 comments on commit b6a0eb2

Please sign in to comment.