Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit c971e371 authored by Christophe Chaudier's avatar Christophe Chaudier :rocket:
Browse files

ci: change image for one more adapted to gitlab and print lint issues on MR

parent bc472944
No related branches found
No related tags found
No related merge requests found
---
ansible-lint:
extends: .base_ansible
image:
name: cytopia/ansible-lint
entrypoint: ["/bin/sh", "-c"]
image: registry.gitlab.com/pipeline-components/ansible-lint:latest
stage: lint
variables:
files_to_lint: ""
script: |
for file in "${files_to_lint} $(find . -name "*.yml" | grep -v vault)"; do
echo "----> Ansible: lint ${file}"
ansible-lint --force-color ${file}
echo -e "\e[32m -> Ansible: lint OK\e[0m"
done
script:
- ansible-lint -f codeclimate | python -m json.tool | tee "${CI_PROJECT_DIR}/codeclimate-results.json"
artifacts:
name: "$CI_JOB_NAME artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
reports:
codequality:
- "${CI_PROJECT_DIR}/codeclimate-results.json"
paths:
- "${CI_PROJECT_DIR}/codeclimate-results.json"
ansible-syntax-check:
extends: .base_ansible
......
[defaults]
vault_password_file = .vault_pass
......@@ -4,7 +4,8 @@
tasks:
- name: Hello world
ansible.builtin.debug: msg="Hello!"
ansible.builtin.debug:
msg: "Hello!"
- name: Create hello file
ansible.builtin.file:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment