feat(ci): add lint pipeline
ci/woodpecker/pr/lint Pipeline failed Details

This commit is contained in:
Aire-One 2024-08-06 03:39:33 +02:00
parent aa65e97df4
commit 78673703e6
4 changed files with 38 additions and 1 deletions

View File

@ -11,5 +11,5 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.json]
[*.{json,yml}]
indent_size = 2

4
.hadolint.yaml Normal file
View File

@ -0,0 +1,4 @@
---
ignored:
- DL3018 # warning: Pin versions in apk add. Instead of `apk add <package>` use `apk add <package>=<version>`

25
.woodpecker/lint.yml Normal file
View File

@ -0,0 +1,25 @@
---
when:
event: pull_request
steps:
woodpecker:
image: woodpeckerci/woodpecker-cli:v2.7.0-alpine
commands:
- woodpecker-cli lint .woodpecker/*.yml
when:
path: .woodpecker/**/*.yml
dockerfile:
image: hcr.io/hadolint/hadolint:v2.12.0
commands:
- hadolint Dockerfile
# when:
# path:
# - Dockerfile
cspell:
image: ghcr.io/streetsidesoftware/cspell:8.13.1
commands:
- cspell lint .

8
cspell.json Normal file
View File

@ -0,0 +1,8 @@
{
"words": [
"aireone",
"buildx",
"gitea",
"woodpeckerci"
]
}