diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bb928aa15f3e50a8f4ca544bd1d579db1ec6d9da..e9dd394372d5cdd2d86d8c675387a3814303582c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -89,7 +89,7 @@ system-tests:
 
     # Update the deployment
     - |
-      ./ci-tools/update-grid-servers "${KEY_PATH}" ${name}
+      ./ci-tools/update-grid-servers "${KEY_PATH}" "${CI_ENVIRONMENT_NAME}"
 
     # Remove the key from the filesystem to reduce the chance of unintentional
     # disclosure.  Overall our handling of this key is still not *particulary*