ci: migrate from gitlab ci to woodpecker
Some checks failed
ci/woodpecker/push/linting Pipeline failed
Some checks failed
ci/woodpecker/push/linting Pipeline failed
This commit is contained in:
parent
6d37a58792
commit
f26abeca6d
2 changed files with 65 additions and 0 deletions
24
.ansible-lint
Normal file
24
.ansible-lint
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
exclude_paths:
|
||||||
|
- ".gitlab/*"
|
||||||
|
- ".gitlab-ci.yml"
|
||||||
|
- ".woodpecker/*"
|
||||||
|
- "defaults/main.yaml"
|
||||||
|
- "meta/main.yaml"
|
||||||
|
- "vars/*"
|
||||||
|
|
||||||
|
kinds:
|
||||||
|
- playbook: "**/*.{yml,yaml}"
|
||||||
|
|
||||||
|
skip_list:
|
||||||
|
- "command-shell"
|
||||||
|
- "experimental"
|
||||||
|
- "git-latest"
|
||||||
|
- "no-changed-when"
|
||||||
|
- "no-handler"
|
||||||
|
- "name[casing]"
|
||||||
|
- "name[template]"
|
||||||
|
- "risky-file-permissions"
|
||||||
|
- "schema[playbook]"
|
||||||
|
- "var-naming[no-role-prefix]"
|
||||||
41
.woodpecker/linting.yml
Normal file
41
.woodpecker/linting.yml
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
---
|
||||||
|
when:
|
||||||
|
- event: "push"
|
||||||
|
branch: "main"
|
||||||
|
- event: "manual"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
# gitleaks
|
||||||
|
- name: "gitleaks"
|
||||||
|
# renovate: datasource=github-releases depName=gitleaks/gitleaks
|
||||||
|
image: "cr.simoncor.net/ghcr/gitleaks/gitleaks:v8.30.1"
|
||||||
|
commands:
|
||||||
|
- "gitleaks detect --source . --verbose --redact"
|
||||||
|
|
||||||
|
# yamllint
|
||||||
|
- name: "yamllint"
|
||||||
|
# renovate: datasource=docker depName=cr.simoncor.net/yamllint
|
||||||
|
image: "cr.simoncor.net/yamllint:1.38.0"
|
||||||
|
depends_on:
|
||||||
|
- "gitleaks"
|
||||||
|
commands:
|
||||||
|
- "yamllint -c .yamllint ."
|
||||||
|
|
||||||
|
# ansible-lint
|
||||||
|
- name: "ansible-lint"
|
||||||
|
# renovate: datasource=docker depName=docker.io/pipelinecomponents/ansible-lint
|
||||||
|
image: "cr.simoncor.net/dockerhub/pipelinecomponents/ansible-lint:0.79.11"
|
||||||
|
depends_on:
|
||||||
|
- "gitleaks"
|
||||||
|
commands:
|
||||||
|
- "ansible-lint -c .ansible-lint ."
|
||||||
|
|
||||||
|
# markdownlint
|
||||||
|
- name: "markdownlint"
|
||||||
|
# renovate: datasource=docker depName=docker.io/davidanson/markdownlint-cli2
|
||||||
|
image: "cr.simoncor.net/dockerhub/davidanson/markdownlint-cli2:v0.22.1"
|
||||||
|
depends_on:
|
||||||
|
- "gitleaks"
|
||||||
|
commands:
|
||||||
|
- "markdownlint-cli2 --config .markdownlint-cli2.jsonc"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue