Add linting pipeline
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
6096be0f81
commit
cf1e4318d2
@ -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 {} +
|
||||
|
||||
check:
|
||||
image: registry.opensuse.org/home/crameleon/libertacasa/containers/containerfile/libertacasa/pipeline:latest
|
||||
secrets: [ ci_netrc_username, ci_netrc_password, ci_netrc_machine ]
|
||||
|
Loading…
Reference in New Issue
Block a user