pat-s 8df9d19ef4 Linters and related fixes (#39)
- Add yamllint
- Add markdownlint
- Add precommit config
- Add editorconfig
- Rename `.yml` to `.yaml`
- Add CI workflow to enforce lint rules

Configs are taken from Woodpecker org lint rules.

Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/39
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2024-01-31 16:32:05 +00:00
2024-01-31 16:32:05 +00:00
2024-01-31 16:32:05 +00:00
2024-01-31 16:32:05 +00:00
2024-01-31 16:32:05 +00:00
2024-01-31 16:32:05 +00:00
2024-01-31 16:32:05 +00:00
2024-01-31 16:32:05 +00:00
2024-01-31 16:32:05 +00:00
2024-01-31 16:32:05 +00:00
2024-01-31 16:32:05 +00:00
2022-05-23 23:04:00 +02:00
2024-01-31 16:32:05 +00:00

Woodpecker examples

Example Woodpecker pipelines for various use cases. Pull requests are welcome!

Link Language Build System Comments
KiCad/kibot.yml --- KiBot Building gerber files, ibom and a pdf schematic as an example for KiBot use
C/make.yml C Make Simple ci for building a Make based C project
C/meson.yml C/C++ meson CI for meson-based projects.
C/meson-android.yml C/C++ meson + Android NDK CI for meson-based projects cross-compiling to Android NDK.
Docker/kaniko.yml Dockerfile Kaniko Minimalistic CI pipeline with clear instructions to push a Docker image
Docker/buildx.yml Dockerfile buildx Build and publish Docker images for multiple architectures on codeberg
golang/build.yml golang golang Simple ci for building and test a Go project
golang/build-docker.yml golang golang / kaniko CI to build golang project and build various docker container and publish them on DockerHub
NodeJS/11ty.yml JavaScript NodeJS CI to build static websites files and publish them to Codeberg Pages with 11ty
tectonic/.woodpecker.yml LaTeX Tectonic Builds a TeX file and pushes the resulting PDF file to a given repository.
Jekyll/jekyll.yml Markdown Jekyll CI step to build static website files and publish them to Codeberg Pages using Jekyll
Hugo/hugo.yml Markdown Hugo CI step to build static website files and publish them to Codeberg Pages with Hugo
Python/mkdocs.yml Markdown MkDocs Static Site Generator mkdocs example
mdbook/mdbook.yml Markdown mdbook CI step to build static website files and publish them to Codeberg Pages with mdbook
Python/.woodpecker.yml Python Python venv Standard CI pipeline to test Python packages code on multiple Python distributions. For details check serial-sphinx
Python/pdoc.yml Python Python venv Build API documentation with pdoc & publish files on a pages branch
Rust/.woodpecker.yml Rust cargo Simple CI pipeline to run cargo commands
StandardML/sml.yml Standard ML sml Simple CI pipeline to run SML files
Typst/.woodpecker.yml Typst Typst Builds a Typst file and pushes the resulting PDF file to a given repository.

More examples from Codeberg

Codeberg repos with Woodpecker YAML files

How to add a new example

  1. Create a new subdirectory with a descriptive name. Capitalize the first letter.
  2. If you only add one file: name it .woodpecker.yaml. If you want to add multiple files: add a .woodpecker directory and use descriptive names for the individual yaml files.
  3. Add your example to the README table while respecting the alphabetical order.
  4. Add your new subdirectory to the "woodpecker-cli" step in .woodpecker.yaml so it is getting linted over time.
Description
Exemplary Woodpecker pipelines
Readme 0BSD 350 KiB
Languages
Dockerfile 52.8%
Shell 47.2%