From 5b79fcc7aad9c61eed4174dbe10030359a15b076 Mon Sep 17 00:00:00 2001
From: rh841 <rh841@cam.ac.uk>
Date: Fri, 28 Jul 2023 11:31:27 +0100
Subject: [PATCH] Switch to use terraform-module.yml. This provides the same
 functionality as the original script, namely to lint the Terraform with the
 addition of creating a Terraform Module if a commit tag is provided

---
 .gitlab-ci.yml | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5d04e15..6416c68 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,12 +1,3 @@
-# The "test" job will run the following tests:
-#
-# Terraform's "fmt" utility does not request any changes (i.e. a code lint)
-test:
-  image: docker:stable-git
-
-  services:
-    - docker:stable-dind
-
-  script:
-    # Run terraform's format checker.
-    - docker run -v $(pwd):/deploy --rm hashicorp/terraform:light fmt -check -diff /deploy
+include:
+  - project: 'uis/devops/continuous-delivery/ci-templates'
+    file: '/terraform-module.yml'
-- 
GitLab