[tor-commits] [metrics-cloud/master] Add CloudFormation linter to GitLab CI

irl at torproject.org irl at torproject.org
Wed Aug 14 14:54:34 UTC 2019


commit 3022a0c2a3c18cfdb2342fdde348b282cb3ef9ed
Author: Iain R. Learmonth <irl at fsfe.org>
Date:   Wed Aug 14 15:54:29 2019 +0100

    Add CloudFormation linter to GitLab CI
---
 .gitlab-ci.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index db99318..016e575 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,6 +3,7 @@ variables:
 
 stages:
  - ansible-lint
+ - cfn-lint
 
 ansible-lint:
  stage: ansible-lint
@@ -12,3 +13,12 @@ ansible-lint:
   - apt -y install ansible-lint
   - pushd ansible
   - ansible-lint -x 403 site.yml
+
+cfn-lint:
+ stage: cfn-lint
+ image: debian:buster
+ script:
+  - apt -y update
+  - apt -y install python3-pip
+  - pip3 install cfn-lint
+  - cfn-lint cloudformation/*.yml



More information about the tor-commits mailing list