Signed-off-by: Noah Knegt <git@noahknegt.com>
This commit is contained in:
26
.drone.yml
26
.drone.yml
@@ -4,7 +4,25 @@ type: docker
|
|||||||
name: ansible
|
name: ansible
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: ansible check
|
- name: yaml lint
|
||||||
image: plugins/ansible:3
|
image: cytopia/yamllint:alpine
|
||||||
settings:
|
commands:
|
||||||
check: true
|
- yamllint -c .yamllint.yml .
|
||||||
|
|
||||||
|
- name: ansible lint
|
||||||
|
image: cytopia/ansible-lint:alpine
|
||||||
|
commands:
|
||||||
|
- ansible-lint -c .ansible-lint.yml .
|
||||||
|
|
||||||
|
- name: ansible apply
|
||||||
|
image: plugins/ansible:3
|
||||||
|
settings:
|
||||||
|
inventory: inventory/hosts.yml
|
||||||
|
playbook: site.yml
|
||||||
|
private_key:
|
||||||
|
from_secret: ansible_private_key
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
Reference in New Issue
Block a user