From a04bc656072729b11a33344c3f3cfa566be1e557 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Tue, 12 Apr 2022 00:20:53 +0300
Subject: [PATCH] Install Terraform from the repo.

The pre-commit Docker image has the Hashicorp repo which makes
installing the latest version Terraform much easier.
---
 .gitlab-ci.yml | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3cd1b7b..ad92ba8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,11 +7,8 @@ include:
 
 default:
   before_script:
-    # yamllint disable-line rule:line-length
-    - wget https://releases.hashicorp.com/terraform/0.15.3/terraform_0.15.3_linux_amd64.zip -O /tmp/terraform.zip
-    - unzip /tmp/terraform.zip terraform -d /usr/local/bin/
-    - terraform version
-    - rm -rf .terraform*
+    - apt-get update
+    - apt-get install -y terraform
     - touch payload.zip
 
 Generate payload:
-- 
GitLab