Compare commits

...

2 Commits

Author SHA1 Message Date
7ef54079a6
Address yamllint errors/warnings
Some checks failed
ci/lysergic/push/pipeline Pipeline failed
- remove spaces, add headers
- add ignore for line-lengths in .pipeline.yml

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-02-15 23:01:41 +01:00
cf1e4318d2
Add linting pipeline
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-02-15 23:01:41 +01:00
2 changed files with 16 additions and 2 deletions

View File

@ -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 {} +
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

View File

@ -1,3 +1,4 @@
---
- firewalld
- keepalived
- nginx