Commit 817bf337 authored by nimrod's avatar nimrod
Browse files

Fetch Terraform for CI.

it's the default before_script action, but it would only affect the
pre-commit job (all of the others have their own before_script). It
would allow me to not skip the terraform pre-commit checks.
parent d747c4cb
Loading
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -5,6 +5,15 @@ include:
  - project: shore/ci-templates
    file: templates/terraform.yml

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 -r .terraform*
    - touch payload.zip

Generate payload:
  stage: build
  image: registry.shore.co.il/ci-images:python3
+1 −1
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ repos:
          - https://git.shore.co.il

  - repo: https://git.shore.co.il/nimrod/terraform-pre-commit.git
    rev: v0.1.0
    rev: v0.1.2
    hooks:
      - id: tf-fmt
      - id: tf-validate