terraform-datadog-old-monitors/bitbucket-pipelines.yml
2018-06-28 14:51:35 +02:00

26 lines
669 B
YAML

image: hashicorp/terraform:full
pipelines:
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:
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