From aae4436f46c8fd8a63b6384bfe7e962f3cb6f40a Mon Sep 17 00:00:00 2001 From: mg Date: Wed, 14 Jun 2023 22:29:25 +0200 Subject: [PATCH] fix CI (#535) Co-authored-by: Michael Grote Reviewed-on: https://git.mgrote.net/mg/homeserver/pulls/535 --- .ansible-lint | 14 -------------- .drone.yml | 33 +++++++++++++++++++++++++++------ .yamllint | 3 +++ 3 files changed, 30 insertions(+), 20 deletions(-) delete mode 100644 .ansible-lint create mode 100644 .yamllint diff --git a/.ansible-lint b/.ansible-lint deleted file mode 100644 index 530e0dc8..00000000 --- a/.ansible-lint +++ /dev/null @@ -1,14 +0,0 @@ -exclude_paths: - - roles/riemers.gitlab-runner/ - -parseable: true -quiet: true -skip_list: - - '204' - - '701' - - '208' - - '106' - - '306' -use_default_rules: true -verbosity: 0 -# https://github.com/ansible/ansible-lint#false-positives-skipping-rules diff --git a/.drone.yml b/.drone.yml index a577393c..491ad1d4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,7 +1,7 @@ --- kind: pipeline type: docker -name: default +name: gitleaks steps: - name: gitleaks @@ -13,13 +13,34 @@ steps: exclude: - tag - - name: lint - image: pipelinecomponents/ansible-lint - environment: - DEBIAN_FRONTEND: noninteractive +--- +kind: pipeline +type: docker +name: ansible-lint +steps: + - name: ansible-lint + image: cytopia/ansible-lint commands: - - ansible-lint --show-relpath -v --offline . + - /usr/bin/ansible-lint *.* when: event: exclude: - tag +depends_on: + - gitleaks + +--- +kind: pipeline +type: docker +name: yaml-lint +steps: + - name: yamllint + image: cytopia/yamllint:1 + commands: + - /usr/bin/yamllint -f colored . + when: + event: + exclude: + - tag +depends_on: + - gitleaks diff --git a/.yamllint b/.yamllint new file mode 100644 index 00000000..30d8fe83 --- /dev/null +++ b/.yamllint @@ -0,0 +1,3 @@ +ignore: + - ./roles/pandemonium1986.ansible-role-k9s + - ./roles/robertdebock.bootstrap