ci: migrate from gitlab-ci to woodpecker
Some checks failed
ci/woodpecker/manual/linting Pipeline failed
Some checks failed
ci/woodpecker/manual/linting Pipeline failed
This commit is contained in:
parent
78b6e081cb
commit
35ce37df6e
2 changed files with 41 additions and 13 deletions
|
|
@ -1,13 +0,0 @@
|
|||
---
|
||||
|
||||
# gitlab stages
|
||||
stages:
|
||||
- "gitleaks"
|
||||
- "linting"
|
||||
|
||||
# include components
|
||||
include:
|
||||
- component: "$CI_SERVER_FQDN/components/ansible/linting@v3.0.3"
|
||||
- component: "$CI_SERVER_FQDN/components/gitleaks/gitleaks@v1.0.0"
|
||||
- component: "$CI_SERVER_FQDN/components/markdownlint/markdownlint@1.0.0"
|
||||
- component: "$CI_SERVER_FQDN/components/yamllint/yamllint@1.0.2"
|
||||
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