From c3203d8bcd49d1606d18989bc215fc27c8df80b5 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 29 Dec 2022 10:08:04 +0100 Subject: [PATCH] Adding .gitlab-ci.yml --- .gitlab-ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..dc0b0c4 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,27 @@ +--- + +stages: + - linter + +include: + - local: /gitlab/python-setup-template.yaml + +YAML-linter: + stage: linter + extends: .setup-python-environment + image: python:3.11 + rules: + - if: '$CI_COMMIT_TAG' + - if: $CI_COMMIT_BRANCH == "master" + - if: $CI_COMMIT_BRANCH == "main" + - if: $CI_COMMIT_BRANCH == "test" + - if: $CI_COMMIT_BRANCH =~ /test-.*/ + - if: $CI_COMMIT_BRANCH =~ /build.*/ + - if: $CI_COMMIT_BRANCH == "develop" + tags: + - docker + script: + - apt install --yes yamllint + - yamllint --config-file .yamllint.yaml --strict --format colored .gitlab-ci.yml gitlab + +# vim: et tabstop=2 expandtab shiftwidth=2 softtabstop=2 list -- 2.39.5