feat(ci): move linting to components
This commit is contained in:
parent
eb7aa5c9c1
commit
ad4ec5db39
3 changed files with 16 additions and 36 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 ."
|
||||
16
readme.md
16
readme.md
|
|
@ -1,14 +1,17 @@
|
|||
# Overview
|
||||
|
||||
This role manages the build-in 'core' Operating System components and defaults tailored for Siempie.
|
||||
|
||||
# Supported Operating Systems
|
||||
## Supported Operating Systems
|
||||
|
||||
| Operating System | Version |
|
||||
| --- | ----- |
|
||||
| Debian | 12 |
|
||||
| Ubuntu | 22 LTS |
|
||||
| Ubuntu | 24 LTS |
|
||||
|
||||
# Tags
|
||||
## Tags
|
||||
|
||||
- apt
|
||||
- cron
|
||||
- environment-file
|
||||
|
|
@ -30,8 +33,10 @@ This role manages the build-in 'core' Operating System components and defaults t
|
|||
- timezone
|
||||
- usermanagement
|
||||
|
||||
# Vars
|
||||
## apt
|
||||
## vars
|
||||
|
||||
### apt
|
||||
|
||||
| variable | type | value(default) | comment |
|
||||
| --- | --- | --- | --- |
|
||||
| apt_automatic_reboot_time | string | 04:00 | Automated reboot at 04:00 |
|
||||
|
|
@ -42,7 +47,8 @@ This role manages the build-in 'core' Operating System components and defaults t
|
|||
| apt_repository_main | string | https://archive.ubuntu.com/ubuntu | Ubuntu 24+ |
|
||||
| apt_repository_security | string | https://archive.ubuntu.com/ubuntu | Ubuntu 24+ |
|
||||
|
||||
## ntp
|
||||
### ntp
|
||||
|
||||
| variable | type | value(default) | comment |
|
||||
| --- | --- | --- | --- |
|
||||
| ntp_server | string | pool.ntp.org | NTP server to sync time with |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue