commit f92b11c7c10ba3d1674cee98ef95dbd8521b228c Author: Simon Cornet Date: Tue May 12 10:08:20 2026 +0200 feat: initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6b8710a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.git diff --git a/.markdownlint-cli2.jsonc b/.markdownlint-cli2.jsonc new file mode 100644 index 0000000..56cd87c --- /dev/null +++ b/.markdownlint-cli2.jsonc @@ -0,0 +1,12 @@ +{ + // files to lint + "globs": [ + "readme.md" + ], + // linting rules + "config": { + "MD013": { + "line_length": 120 + } + } +} diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml new file mode 100644 index 0000000..75f2e54 --- /dev/null +++ b/.woodpecker/build.yaml @@ -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}" diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..e4db48c --- /dev/null +++ b/.yamllint @@ -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 diff --git a/Dockerfile.linux.amd64 b/Dockerfile.linux.amd64 new file mode 100644 index 0000000..443b16c --- /dev/null +++ b/Dockerfile.linux.amd64 @@ -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"] diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..9dea006 --- /dev/null +++ b/readme.md @@ -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 . +``` diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..9930592 --- /dev/null +++ b/renovate.json @@ -0,0 +1,7 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "dependencyDashboard": true, + "extends": [ + "local>cicd/renovate" + ] +}