From faa81b78cfc819b94a41ebd3ccf5e27891f113b0 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 14 Nov 2021 20:16:21 +0100 Subject: [PATCH] Add secret --- .drone.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.drone.yml b/.drone.yml index bb46f58..e8070de 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,25 +2,15 @@ kind: pipeline name: default steps: -- name: check ansible syntax +- name: apply ansible production image: plugins/ansible:latest settings: playbook: deployment/todo-setup.yml inventory: deployment/hosts galaxy: deployment/requirements.yml - syntax_check: false + private_key: + from_secret: ansible_private_key when: - event: - - pull_request - -- name: apply ansible playbook - image: plugins/ansible:1 - settings: - playbook: deployment/todo-setup.yml - inventory: deployment/hosts - when: - branch: - - production event: - push