[ci] feat: added linting and deployment steps
This commit is contained in:
parent
9c6cd62251
commit
572111e362
4 changed files with 74 additions and 66 deletions
15
.gitlab/linting.yaml
Normal file
15
.gitlab/linting.yaml
Normal 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 ."
|
||||
Loading…
Add table
Add a link
Reference in a new issue