MON-231 add exit code for git diff

This commit is contained in:
Quentin Manfroi 2018-06-28 14:51:35 +02:00
parent 8362e0e2ed
commit b1d5a0bc7e

View File

@ -3,24 +3,23 @@ image: hashicorp/terraform:full
pipelines:
default:
- step:
name: Format
name: Terraform format
script:
- terraform fmt -write=false -diff -check
- step:
name: Validate
name: Terraform validate
script:
- mv main.tf.ci main.tf
- mv terraform.tfvars.ci terraform.tfvars
- terraform init
- terraform validate
custom:
manual:
- step:
script:
- apk update
- apk upgrade
- apk add --no-cache bash git grep
- go get github.com/segmentio/terraform-docs
- ./scripts/update_readme.sh
- git status
- git diff
- step:
name: Readme update
script:
- apk update
- apk upgrade
- apk add --no-cache bash git grep
- go get github.com/segmentio/terraform-docs
- ./scripts/update_readme.sh
- git status
- git diff --exit-code