From d49e69634013c3a289d1590207bfd916af28b599 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..0ad36bf 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: format and generate docs + image: hashicorp/terraform:1.1.8 + commands: + - apk add bash wget + - wget -q 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: c6554c5e7fc2c06848178745fbc97f30f1a5c652f9ad93995c901cb8cb7296e1 ...