diff --git a/.github/workflows/build-2.x.yml b/.github/workflows/build-2.x.yml
index 3e1a1503..69eb9678 100644
--- a/.github/workflows/build-2.x.yml
+++ b/.github/workflows/build-2.x.yml
@@ -60,7 +60,7 @@ jobs:
         ports:
           - 4444:4444
         # selenium needs to access drupal running on the host
-        options: --add-host localhost=host-gateway
+        options: --add-host=localhost:host-gateway
 
     # Steps represent a sequence of tasks that will be executed as part of the job
     steps: