feat: add more stuff
This commit is contained in:
parent
075da97511
commit
4e2886dd59
12 changed files with 74 additions and 62 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue