Update drone pipeline
This commit is contained in:
parent
f882691ac9
commit
f044682421
17
.drone.yml
17
.drone.yml
@ -12,17 +12,13 @@ steps:
|
|||||||
from_secret: ansible_vault_token
|
from_secret: ansible_vault_token
|
||||||
private_key:
|
private_key:
|
||||||
from_secret: ansible_private_key
|
from_secret: ansible_private_key
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- promote
|
|
||||||
- rollback
|
|
||||||
- push
|
|
||||||
- custom
|
|
||||||
|
|
||||||
- name: Run ansible playbook
|
- name: Run ansible playbook
|
||||||
image: harbor.sebclem.fr/sebclem/drone-ansible-runner
|
image: harbor.sebclem.fr/sebclem/drone-ansible-runner
|
||||||
settings:
|
settings:
|
||||||
verbosity: 1
|
verbosity: ${verbosity=0}
|
||||||
|
limit: ${limit}
|
||||||
|
tags: ${tags}
|
||||||
playbook: sites.yml
|
playbook: sites.yml
|
||||||
galaxy_file: roles/requirements.yml
|
galaxy_file: roles/requirements.yml
|
||||||
vault_token:
|
vault_token:
|
||||||
@ -30,9 +26,10 @@ steps:
|
|||||||
private_key:
|
private_key:
|
||||||
from_secret: ansible_private_key
|
from_secret: ansible_private_key
|
||||||
when:
|
when:
|
||||||
event:
|
branch:
|
||||||
- promote
|
- master
|
||||||
- rollback
|
target:
|
||||||
|
- production
|
||||||
|
|
||||||
- name: Notify
|
- name: Notify
|
||||||
image: drillster/drone-email
|
image: drillster/drone-email
|
||||||
|
Loading…
x
Reference in New Issue
Block a user