feat: add more stuff

This commit is contained in:
Simon Cornet 2026-02-18 17:20:00 +01:00
commit 4e2886dd59
12 changed files with 74 additions and 62 deletions

View file

@ -1,26 +1,13 @@
---
# gitlab stages
stages:
- lint
- test
- "gitleaks"
- "linting"
variables:
ANSIBLE_FORCE_COLOR: "true"
ansible-lint:
stage: lint
image: "registry.gitlab.com/siempie/ansible-runner:latest"
script:
- "ansible-lint"
rules:
- if: "$CI_PIPELINE_SOURCE == 'merge_request_event'"
- if: "$CI_COMMIT_BRANCH == 'main'"
molecule:
stage: test
image: "registry.gitlab.com/siempie/ansible-runner:latest"
script:
- "molecule test"
rules:
- if: "$CI_PIPELINE_SOURCE == 'merge_request_event'"
- if: "$CI_COMMIT_BRANCH == 'main'"
# 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"