MON-293 optimize pipeline

This commit is contained in:
Quentin Manfroi 2018-08-22 17:23:25 +02:00
parent 03319377a5
commit 89d7258402
6 changed files with 7 additions and 26 deletions

View File

@ -2,17 +2,6 @@ image: hashicorp/terraform:full
pipelines: pipelines:
default: default:
- step:
name: Terraform format
script:
- terraform fmt -write=false -diff -check
- step:
name: Terraform validate
script:
- mv main.tf.ci main.tf
- mv terraform.tfvars.ci terraform.tfvars
- terraform init
- terraform validate
- step: - step:
name: Check auto update name: Check auto update
script: script:

View File

@ -1,7 +0,0 @@
variable "aws_region" {}
provider "aws" {
version = "1.2.0"
region = "${var.aws_region}"
}

View File

@ -19,4 +19,3 @@ EOF
done done
cd - >> /dev/null cd - >> /dev/null
done done
terraform fmt "$(get_scope $1)"

View File

@ -21,4 +21,3 @@ EOF
fi fi
cd - >> /dev/null cd - >> /dev/null
done done
terraform fmt "$(get_scope $1)"

7
scripts/99_terraform.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
set -xueo pipefail
source "$(dirname $0)/utils.sh"
goto_root
terraform fmt

View File

@ -1,6 +0,0 @@
aws_region="eu-west-1"
region="eu-west-1"
env="test"
hno_escalation_group="abc"
ho_escalation_group="abc"