diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4f74d17305bf3b9b9fbac543809e2d1d15d59124..0ab093e6614e8309892d72a5b5f5b82701e92c6e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -68,7 +68,7 @@ test:
         #- rc=$?
         #- docker-compose  down
         #- exit $rc
-      - ./wait-for-it.sh localhost:10443 -t 60 -- curl https://localhost:10443
+      - ./wait-for-it.sh $HOSTNAME:10443 -t 60 -- curl https://$HOSTNAME:10443
       - cd ..
 
 build-testenv: