diff options
author | Georg Pfuetzenreuter | 2023-02-15 23:22:08 +0100 |
---|---|---|
committer | Georg Pfuetzenreuter | 2023-02-15 23:22:08 +0100 |
commit | 51da14de69ac98ddd49cae393a76d64bded041b0 (patch) | |
tree | e16882e59a3f08fe1a09220d2a8d7c8358b7f23c /.pipeline.yml | |
parent | 6096be0f8107b89e50bc54ffd224fd3e88ca8c2f (diff) | |
parent | 18d28c3b7fed42e29eb9ff7b11b4dd1a54f8a510 (diff) | |
download | salt-51da14de69ac98ddd49cae393a76d64bded041b0.tar.gz salt-51da14de69ac98ddd49cae393a76d64bded041b0.tar.bz2 salt-51da14de69ac98ddd49cae393a76d64bded041b0.zip |
Merge pull request 'Linting' (#33) from linting into production
Reviewed-on: https://git.com.de/LibertaCasa/salt/pulls/33
Diffstat (limited to '.pipeline.yml')
-rw-r--r-- | .pipeline.yml | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/.pipeline.yml b/.pipeline.yml index 9450491..1c2352f 100644 --- a/.pipeline.yml +++ b/.pipeline.yml @@ -1,9 +1,22 @@ +--- +# yamllint disable rule:line-length 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 ] + secrets: [ci_netrc_username, ci_netrc_password, ci_netrc_machine] when: event: [push] commands: @@ -29,5 +42,5 @@ pipeline: event: [push] instance: woodpecker-orpheus.intranet.squirrelcube.com commands: - #- rolesyncer + # - rolesyncer - bin/rolesyncer.py |