MON-231 add exit code for git diff
This commit is contained in:
parent
8362e0e2ed
commit
b1d5a0bc7e
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user