diff options
author | Georg Pfuetzenreuter | 2023-02-15 22:59:10 +0100 |
---|---|---|
committer | Georg Pfuetzenreuter | 2023-02-15 23:15:25 +0100 |
commit | 36b1fbffb2f24506079e46a8155877c19f648473 (patch) | |
tree | 1fbc0c7fc2265c3c4e308ef753fe442ae60b2902 | |
parent | 6096be0f8107b89e50bc54ffd224fd3e88ca8c2f (diff) | |
download | salt-36b1fbffb2f24506079e46a8155877c19f648473.tar.gz salt-36b1fbffb2f24506079e46a8155877c19f648473.tar.bz2 salt-36b1fbffb2f24506079e46a8155877c19f648473.zip |
Add linting pipeline
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
-rw-r--r-- | .pipeline.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.pipeline.yml b/.pipeline.yml index 9450491..1c8955d 100644 --- a/.pipeline.yml +++ b/.pipeline.yml @@ -1,6 +1,17 @@ skip_clone: true pipeline: + lint: + image: registry.opensuse.org/home/crameleon/libertacasa/containers/containerfile/libertacasa/pipeline-lint:latest + secrets: [ci_netrc_username, ci_netrc_password, ci_netrc_machine] + when: + event: [push] + commands: + - git clone --single-branch -b $CI_COMMIT_BRANCH $CI_REPO_LINK ../salt-libertacasa-linting + - cd ../salt-libertacasa-linting + - find . -type f \( -name '*.yaml' -o -name '*.yml' \) -exec yamllint -f colored -s {} + + - find . -name '*.sls' -exec salt-lint --severity -x 204 {} + + check: image: registry.opensuse.org/home/crameleon/libertacasa/containers/containerfile/libertacasa/pipeline:latest secrets: [ ci_netrc_username, ci_netrc_password, ci_netrc_machine ] |