From b151abe079e02be5c94c8a49458a3a907987d8f8 Mon Sep 17 00:00:00 2001
From: Jean-Paul Calderone <exarkun@twistedmatrix.com>
Date: Mon, 19 Jul 2021 08:52:47 -0400
Subject: [PATCH] Use the GitLab-defined `CI_ENVIRONMENT_NAME`

`name` does not exist.  I think the `environment` section of the configuration
tricked me.
---
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bb928aa1..e9dd3943 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*
-- 
GitLab