Feature: Add YAML linter
All checks were successful
Lint yaml / build-package (push) Successful in 14s

This commit is contained in:
2024-11-06 08:28:31 +00:00
parent 4fae816c71
commit 111882e511
6 changed files with 83 additions and 62 deletions

21
.gitea/workflows/lint.yml Normal file
View File

@@ -0,0 +1,21 @@
---
name: Lint yaml
on: [push]
jobs:
build-package:
runs-on: imgbuilder
container:
image: gitea.konchin.com/image/yamllint:latest
credentials:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
options: |
--dns 192.168.68.254 --dns-search konchin.com --dns-option ndots:15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint YAML
run: |
yamllint .

View File

@@ -7,7 +7,7 @@ generatorOptions:
disableNameSuffixHash: true
resources:
- ns.kickstart.yaml
- deploy.kickstart.yaml
- svc.kickstart.yaml
- ing.kickstart.yaml
- ns.kickstart.yaml
- deploy.kickstart.yaml
- svc.kickstart.yaml
- ing.kickstart.yaml