From 02a3a964f387943835badd72aa7be6f469b79360 Mon Sep 17 00:00:00 2001 From: Christophe Chaudier Date: Thu, 7 Oct 2021 10:03:27 +0000 Subject: [PATCH 1/2] ci: add linter and syntax check from project gci-tpl --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..4019466 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,10 @@ +--- +# -*- coding: utf-8 -*- +# Doc: https://docs.gitlab.com/ce/ci/yaml/#include + +include: + - project: 'froggit/ci/gci-tpl' + ref: 0.0.1 + file: + - '/templates/stages.yml' + - '/templates/job/ansible/lint.yml' From 3033bd22a9beb38af2cc24959d4efd04c24b5f52 Mon Sep 17 00:00:00 2001 From: Christophe Chaudier Date: Tue, 12 Oct 2021 10:10:35 +0200 Subject: [PATCH 2/2] fix: no playbook syntax chech because this repo as no playbook --- .gitlab-ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4019466..c66046c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,3 +8,8 @@ include: file: - '/templates/stages.yml' - '/templates/job/ansible/lint.yml' + +# No playbook in this repo +ansible-syntax-check: + rules: + - when: never