diff --git a/.drone.yml b/.drone.yml index b098756..ccee337 100644 --- a/.drone.yml +++ b/.drone.yml @@ -23,8 +23,18 @@ steps: environment: SSH_KEY: from_secret: ssh_key + when: + event: + - push + branch: + - master - name: ansible apply - image: cytopia/ansible:alpine + image: cytopia/ansible:infra commands: - ansible-playbook -i inventory/hosts site.yml --private-key /drone/src/.ssh/id_ed25519 + when: + event: + - push + branch: + - master