Add woodpecker pipeline
This commit is contained in:
parent
1828ac5cd5
commit
92cf69cee1
25
.woodpecker.yml
Normal file
25
.woodpecker.yml
Normal file
@ -0,0 +1,25 @@
|
||||
pipeline:
|
||||
syntax-check:
|
||||
image: ansible/ansible:latest
|
||||
commands:
|
||||
- ansible-playbook --syntax-check ansible/playbooks/*.yml
|
||||
|
||||
validate:
|
||||
image: ansible/ansible:latest
|
||||
commands:
|
||||
- ansible-playbook -i ansible/inventory/hosts.yml ansible/playbooks/validate.yml
|
||||
|
||||
drift-check:
|
||||
image: ansible/ansible:latest
|
||||
commands:
|
||||
- ansible-playbook -i ansible/inventory/hosts.yml ansible/playbooks/drift-check.yml
|
||||
when:
|
||||
event: pull_request
|
||||
|
||||
deploy:
|
||||
image: ansible/ansible:latest
|
||||
commands:
|
||||
- ansible-playbook -i ansible/inventory/hosts.yml ansible/playbooks/apply.yml
|
||||
when:
|
||||
branch: master
|
||||
event: push
|
||||
Loading…
x
Reference in New Issue
Block a user