Add secret
This commit is contained in:
parent
a6ce20151f
commit
faa81b78cf
16
.drone.yml
16
.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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user