[ci] feat: added linting and deployment steps

This commit is contained in:
Simon Cornet 2024-12-11 20:18:05 +01:00
commit 572111e362
4 changed files with 74 additions and 66 deletions

15
.gitlab/linting.yaml Normal file
View file

@ -0,0 +1,15 @@
---
# linting
linting:
stage: "linting"
image:
name: "cr.simoncor.net/siempie/ansible-deployment:latest"
entrypoint: ["/bin/sh", "-c"]
rules:
- if: '$CI_PIPELINE_SOURCE != "schedule" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
- when: "never"
# start linting
script:
- "ansible-lint -c .ansible-lint ."