From 2b98282c26be8646a0b04d9ffab9f266d28d74d6 Mon Sep 17 00:00:00 2001 From: Tamas Kiss Date: Fri, 27 May 2022 14:49:33 +0200 Subject: [PATCH] ci: check docs and format --- .drone.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 83fb0a5..57e727e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -68,8 +68,30 @@ steps: TF_VAR_lawndale_dns_key_algorithm: from_secret: lawndale-dns-key-algorithm +--- +kind: pipeline +type: kubernetes +name: Check docs and format + +environment: + TF_IN_AUTOMATION: "1" + +trigger: + ref: + - refs/pull/*/head + +steps: +- name: terraform init + image: hashicorp/terraform:1.1.8 + commands: + - apk add bash wget + - wget https://github.com/terraform-docs/terraform-docs/releases/download/v0.16.0/terraform-docs-v0.16.0-linux-amd64.tar.gz -O - | tar -xz terraform-docs -C /usr/local/bin + - terraform fmt + - terraform-docs . + - git diff-index --name-status HEAD + --- kind: signature -hmac: e5dd07c87773ffb3b02240744e4bdde91d9338a344d0ba2d393f598aac43cdfd +hmac: daffcd677b718052e62c70f8c57e06d353c442affc578c587c7c7c9188a086fe ...