feat(ci): move linting to components
This commit is contained in:
parent
757f6ad3be
commit
0662af9b63
3 changed files with 10 additions and 33 deletions
|
|
@ -14,5 +14,9 @@ include:
|
|||
|
||||
# deployment
|
||||
- local: ".gitlab/gitleaks.yaml"
|
||||
- local: ".gitlab/linting.yaml"
|
||||
- local: ".gitlab/deployment.yaml"
|
||||
|
||||
# linting
|
||||
- component: "$CI_SERVER_FQDN/components/ansiblelint/ansiblelint@1.0.0"
|
||||
- component: "$CI_SERVER_FQDN/components/markdownlint/markdownlint@1.0.0"
|
||||
- component: "$CI_SERVER_FQDN/components/yamllint/yamllint@1.0.2"
|
||||
|
|
|
|||
|
|
@ -1,30 +0,0 @@
|
|||
---
|
||||
|
||||
# linting
|
||||
ansible-lint:
|
||||
stage: "linting"
|
||||
image: "docker.io/pipelinecomponents/ansible-lint:0.79.0"
|
||||
rules:
|
||||
|
||||
# run only on push to default branch
|
||||
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
||||
- when: "never"
|
||||
|
||||
# start linting
|
||||
script:
|
||||
- "ansible-lint -c .ansible-lint ."
|
||||
|
||||
# yamllint
|
||||
yamllint:
|
||||
stage: "linting"
|
||||
image: "registry.gitlab.com/pipeline-components/yamllint:0.35.0"
|
||||
rules:
|
||||
|
||||
# run only on push to default branch
|
||||
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
||||
- when: "never"
|
||||
|
||||
script:
|
||||
|
||||
# run yamllint
|
||||
- "yamllint ."
|
||||
|
|
@ -1,10 +1,13 @@
|
|||
# Overview
|
||||
|
||||
This role updates a Proxmox Cluster.
|
||||
|
||||
# Supported Operating Systems
|
||||
## Supported Operating Systems
|
||||
|
||||
| Operating System | Version |
|
||||
| --- | ----- |
|
||||
| Debian | 12 |
|
||||
|
||||
# Tags
|
||||
## Tags
|
||||
|
||||
This role has no tags.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue