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 56140e0d authored by Christophe Chaudier's avatar Christophe Chaudier :rocket:
Browse files

Merge branch '86-ci-move-to-pipelinecomponents' into 'master'

Resolve "ci: move to pipelinecomponents"

Closes #86

See merge request lydra/gitlab-ci-templates!60
parents bc472944 c971e371
No related branches found
Tags 0.0.4
No related merge requests found
Pipeline #37478 failed
---
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