Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
Pipeline #1616 passed
......@@ -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
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment