ci: migrate from gitlab ci to woodpecker
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
This commit is contained in:
parent
03c25e4aea
commit
e430d6cb00
6 changed files with 59 additions and 29 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
exclude_paths:
|
exclude_paths:
|
||||||
- ".gitlab/*"
|
- ".gitlab/*"
|
||||||
- ".gitlab-ci.yml"
|
- ".gitlab-ci.yml"
|
||||||
|
- ".woodpecker/*"
|
||||||
- "defaults/main.yaml"
|
- "defaults/main.yaml"
|
||||||
- "meta/main.yaml"
|
- "meta/main.yaml"
|
||||||
- "vars/*"
|
- "vars/*"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
|
||||||
|
|
@ -6,7 +6,8 @@
|
||||||
// linting rules
|
// linting rules
|
||||||
"config": {
|
"config": {
|
||||||
"MD013": {
|
"MD013": {
|
||||||
"line_length": 120
|
"line_length": 120,
|
||||||
|
"tables": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
41
.woodpecker/linting.yml
Normal file
41
.woodpecker/linting.yml
Normal 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"
|
||||||
28
readme.md
28
readme.md
|
|
@ -4,11 +4,11 @@ Install and configure [Unbound](https://nlnetlabs.nl/projects/unbound/) DNS serv
|
||||||
|
|
||||||
## Variables
|
## Variables
|
||||||
|
|
||||||
| Variable | Required | Default | Description |
|
| Variable | Required | Default | Description |
|
||||||
|----------|----------|---------|-------------|
|
| ---------------------- | -------- | ------------------------ | ----------------------------- |
|
||||||
| `unbound_upstream_dns` | No | `["8.8.8.8", "1.1.1.1"]` | Upstream DNS servers |
|
| `unbound_upstream_dns` | No | `["8.8.8.8", "1.1.1.1"]` | Upstream DNS servers |
|
||||||
| `unbound_allow_access` | Yes | `[]` | Networks allowed to query DNS |
|
| `unbound_allow_access` | Yes | `[]` | Networks allowed to query DNS |
|
||||||
| `unbound_zones` | Yes | `[]` | DNS zones to configure |
|
| `unbound_zones` | Yes | `[]` | DNS zones to configure |
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
|
|
@ -69,15 +69,15 @@ unbound_zones:
|
||||||
|
|
||||||
## Supported Record Types
|
## Supported Record Types
|
||||||
|
|
||||||
| Type | Required Fields | Description |
|
| Type | Required Fields | Description |
|
||||||
|------|----------------|-------------|
|
| ------------- | ----------------------------------------------------- | ------------------- |
|
||||||
| `A` (default) | `name`, `value` | IPv4 address record |
|
| `A` (default) | `name`, `value` | IPv4 address record |
|
||||||
| `AAAA` | `name`, `value`, `type` | IPv6 address record |
|
| `AAAA` | `name`, `value`, `type` | IPv6 address record |
|
||||||
| `CNAME` | `name`, `value`, `type` | Canonical name |
|
| `CNAME` | `name`, `value`, `type` | Canonical name |
|
||||||
| `MX` | `name`, `value`, `type`, `priority` | Mail exchange |
|
| `MX` | `name`, `value`, `type`, `priority` | Mail exchange |
|
||||||
| `TXT` | `name`, `value`, `type` | Text record |
|
| `TXT` | `name`, `value`, `type` | Text record |
|
||||||
| `SRV` | `name`, `value`, `type`, `priority`, `weight`, `port` | Service locator |
|
| `SRV` | `name`, `value`, `type`, `priority`, `weight`, `port` | Service locator |
|
||||||
| `PTR` | `name`, `value`, `type` | Pointer record |
|
| `PTR` | `name`, `value`, `type` | Pointer record |
|
||||||
|
|
||||||
## Reverse DNS
|
## Reverse DNS
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,5 @@
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- name: "dns"
|
- name: "dns"
|
||||||
src: "https://gitlab.simoncor.net/ansible/ans-unbound.git"
|
src: "https://git.simoncor.net/ansible/unbound.git"
|
||||||
scm: "git"
|
scm: "git"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue