From 477ed14e3484313372af2da2cc1759494b4ba19d Mon Sep 17 00:00:00 2001 From: Joe Corall <joe@libops.io> Date: Tue, 23 Apr 2024 03:32:33 -0400 Subject: [PATCH] use host.docker.internal --- .github/workflows/build-2.x.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-2.x.yml b/.github/workflows/build-2.x.yml index adbbbd52..7262574c 100644 --- a/.github/workflows/build-2.x.yml +++ b/.github/workflows/build-2.x.yml @@ -61,7 +61,7 @@ jobs: ports: - 4444:4444 # selenium needs to access drupal running on the host - options: --add-host=localhost:host-gateway + options: --add-host=host.docker.internal:host-gateway # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -124,6 +124,9 @@ jobs: - name: Test scripts run: $SCRIPT_DIR/travis_scripts.sh + - name: Add hosts to /etc/hosts + run: | + echo "127.0.0.1 host.docker.internal" | sudo tee -a /etc/hosts - name: PHPUNIT tests run: | set -eou pipefail