From 008d263f349eb3fcf29c402e97d99b135eedbda5 Mon Sep 17 00:00:00 2001 From: Accendit <36697826+Accendit@users.noreply.github.com> Date: Mon, 11 May 2020 22:47:32 +0200 Subject: [PATCH] Adjusted CI pipeline --- .drone.yml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 63d05f6..a77fd96 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,9 +3,32 @@ type: docker name: provision devices steps: - - name: build + - name: install Ansible and execute playbook image: python:latest commands: - pip install pipenv - python3 -m pipenv install --system - - ansible-playbook site.yml -i inventory.yml \ No newline at end of file + - ansible-playbook site.yml -i inventory.yml + when: + branch: + - master + event: + - push + +--- +kind: pipeline +type: docker +name: run Ansible check + +steps: + - name: install Ansible and execute playbook with Check flag + image: python:latest + commands: + - pip install pipenv + - python3 -m pipenv install --system + - ansible-playbook site.yml -i inventory.yml --check + when: + branch: + - development + event: + - push \ No newline at end of file