From 3d94890d6c62f103c00eb68662018c7986c48911 Mon Sep 17 00:00:00 2001 From: Noah Knegt Date: Thu, 30 Mar 2023 14:13:35 +0200 Subject: [PATCH] Modify CI pipeline Signed-off-by: Noah Knegt --- .drone.yml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 9bcf792..24503a5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,7 +4,25 @@ type: docker name: ansible steps: -- name: ansible check - image: plugins/ansible:3 - settings: - check: true + - name: yaml lint + image: cytopia/yamllint:alpine + commands: + - yamllint -c .yamllint.yml . + + - name: ansible lint + image: cytopia/ansible-lint:alpine + commands: + - ansible-lint -c .ansible-lint.yml . + + - name: ansible apply + image: plugins/ansible:3 + settings: + inventory: inventory/hosts.yml + playbook: site.yml + private_key: + from_secret: ansible_private_key + when: + branch: + - master + event: + - push