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: pipelines:
default: default:
- step: - step:
name: Format name: Terraform format
script: script:
- terraform fmt -write=false -diff -check - terraform fmt -write=false -diff -check
- step: - step:
name: Validate name: Terraform validate
script: script:
- mv main.tf.ci main.tf - mv main.tf.ci main.tf
- mv terraform.tfvars.ci terraform.tfvars - mv terraform.tfvars.ci terraform.tfvars
- terraform init - terraform init
- terraform validate - terraform validate
custom: - step:
manual: name: Readme update
- step: script:
script: - apk update
- apk update - apk upgrade
- apk upgrade - apk add --no-cache bash git grep
- apk add --no-cache bash git grep - go get github.com/segmentio/terraform-docs
- go get github.com/segmentio/terraform-docs - ./scripts/update_readme.sh
- ./scripts/update_readme.sh - git status
- git status - git diff --exit-code
- git diff