ci: migrate from gitlab ci to woodpecker
All checks were successful
ci/woodpecker/push/linting Pipeline was successful

This commit is contained in:
Simon Cornet 2026-05-15 14:13:54 +02:00
commit 1c07d1d28e
6 changed files with 55 additions and 25 deletions

View file

@ -3,6 +3,7 @@
exclude_paths:
- ".gitlab/*"
- ".gitlab-ci.yml"
- ".woodpecker/*"
- "defaults/main.yaml"
- "meta/main.yaml"
- "vars/*"

View file

@ -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"

View file

@ -6,7 +6,8 @@
// linting rules
"config": {
"MD013": {
"line_length": 120
"line_length": 120,
"tables": false
}
}
}

41
.woodpecker/linting.yml Normal file
View 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"

View file

@ -4,14 +4,14 @@ Install and configure [phpIPAM](https://phpipam.net/) - an open-source IP addres
## Variables
| Variable | Required | Default | Description |
|----------|----------|---------|-------------|
| `phpipam_db_root_password` | Yes | `changeme` | MariaDB root password |
| `phpipam_db_user` | Yes | `phpipam` | phpIPAM database user |
| `phpipam_db_password` | Yes | `changeme` | phpIPAM database password |
| `phpipam_db_name` | Yes | `phpipam` | phpIPAM database name |
| `phpipam_http_port` | Yes | `8080` | HTTP port for phpIPAM web interface |
| `phpipam_scan_interval` | Yes | `6h` | Interval for network scanning |
| Variable | Required | Default | Description |
| -------------------------- | -------- | ---------- | ----------------------------------- |
| `phpipam_db_root_password` | Yes | `changeme` | MariaDB root password |
| `phpipam_db_user` | Yes | `phpipam` | phpIPAM database user |
| `phpipam_db_password` | Yes | `changeme` | phpIPAM database password |
| `phpipam_db_name` | Yes | `phpipam` | phpIPAM database name |
| `phpipam_http_port` | Yes | `8080` | HTTP port for phpIPAM web interface |
| `phpipam_scan_interval` | Yes | `6h` | Interval for network scanning |
## Example

View file

@ -2,11 +2,11 @@
roles:
- name: "docker"
src: "https://gitlab.simoncor.net/ansible/ans-docker.git"
src: "https://git.simoncor.net/ansible/docker.git"
scm: "git"
- name: "phpipam"
src: "https://gitlab.simoncor.net/ansible/ans-phpipam.git"
src: "https://git.simoncor.net/ansible/phpipam.git"
scm: "git"
- name: "traefik"
src: "https://gitlab.simoncor.net/ansible/ans-traefik.git"
src: "https://git.simoncor.net/ansible/traefik.git"
scm: "git"