MON-336 fix pipeline and add its status in README

This commit is contained in:
Quentin Manfroi 2018-10-23 16:41:21 +02:00
parent 7f8e95b101
commit 6b0824d566
4 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ test_auto_update:
- apk add --no-cache bash git grep coreutils curl
- curl -Lo /usr/local/bin/terraform-docs "https://github.com/$(curl -s https://github.com/segmentio/terraform-docs/releases | grep terraform-docs-v0.4.0-linux-amd | head -n 1 | cut -d '"' -f 2)"
- chmod +x /usr/local/bin/terraform-docs
- ./scripts/auto_update.sh
- ./scripts/auto_update.sh ./
- git status
- git diff --exit-code
tags:

View File

@ -1,7 +1,8 @@
# DataDog Monitors #
# DataDog Monitors [![pipeline status](https://git.fr.clara.net/claranet/cloudnative/projects/datadog/terraform/monitors/badges/master/pipeline.svg)](https://git.fr.clara.net/claranet/cloudnative/projects/datadog/terraform/monitors/commits/master) #
This repository is used to store all our monitors templates ready to use for generic purpose.
### How to contribute ? ###
First, you may refresh your knowledge and look at the [terminology](https://confluence.fr.clara.net/display/DAT/Getting+started).

View File

@ -11,7 +11,6 @@ for path in $(find "$(get_scope $1)" -path ./incubator -prune -o -name 'monitors
> outputs.tf
# loop over monitors for each set
for monitor in $(grep 'resource "datadog_monitor"' $(basename $path) | awk '{print $3}' | tr -d '"' ); do
echo $monitor
# create output block for current monitor
cat >> outputs.tf <<EOF
output "${monitor}_id" {

View File

@ -6,7 +6,7 @@ goto_root
for path in $(find "$(get_scope $1)" -path ./testing -prune -o -path ./incubator -prune -o -name 'inputs.tf' -print); do
dir=$(dirname ${path})
terraform init ${dir}
terraform init ${dir} >> /dev/null 2>&1
terraform validate --check-variables=false ${dir}
done