feat: initial commit
Some checks failed
ci/woodpecker/manual/build Pipeline failed

This commit is contained in:
Simon Cornet 2026-05-12 10:08:20 +02:00
commit f92b11c7c1
7 changed files with 86 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.git

12
.markdownlint-cli2.jsonc Normal file
View file

@ -0,0 +1,12 @@
{
// files to lint
"globs": [
"readme.md"
],
// linting rules
"config": {
"MD013": {
"line_length": 120
}
}
}

16
.woodpecker/build.yaml Normal file
View file

@ -0,0 +1,16 @@
---
when:
- event: "push"
branch: "main"
- event: "manual"
steps:
# build yamllint container
- name: "build"
image: "cr.simoncor.net/quay/buildah/stable:latest"
commands:
- "VERSION=$(grep -oP '(?<=yamllint==)[0-9.]+' Dockerfile.linux.amd64)"
- "buildah bud -t yamllint -f Dockerfile.linux.amd64 ."
- "buildah tag yamllint cr.simoncor.net/yamllint:${VERSION}"
- "buildah push cr.simoncor.net/yamllint:${VERSION}"

30
.yamllint Normal file
View file

@ -0,0 +1,30 @@
---
extends: 'default'
rules:
braces:
max-spaces-inside: 1
forbid: true
comments:
min-spaces-from-content: 1
comments-indentation: false
empty-lines:
max: 2
indentation:
spaces: 2
check-multi-line-strings: true
line-length:
max: 130
allow-non-breakable-words: true
allow-non-breakable-inline-mappings: true
new-line-at-end-of-file: 'enable'
octal-values:
forbid-implicit-octal: true
forbid-explicit-octal: true
truthy:
allowed-values:
- 'true'
- 'false'
quoted-strings:
quote-type: 'any'
required: true

11
Dockerfile.linux.amd64 Normal file
View file

@ -0,0 +1,11 @@
FROM alpine:3.23
RUN apk add --no-cache \
python3 \
py3-pip && \
apk cache clean
# renovate: datasource=pypi depName=yamllint
RUN pip3 install --no-cache-dir --break-system-packages yamllint==1.38.0
ENTRYPOINT ["yamllint"]

9
readme.md Normal file
View file

@ -0,0 +1,9 @@
# yamllint
Lightweight yamllint container based on Alpine 3.23.
## Usage
```bash
podman run --rm -v .:/workdir:ro cr.simoncor.net/yamllint:latest -c .yamllint .
```

7
renovate.json Normal file
View file

@ -0,0 +1,7 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"dependencyDashboard": true,
"extends": [
"local>cicd/renovate"
]
}