Add woodpecker pipeline

This commit is contained in:
dvirlabs 2026-04-16 19:37:50 +03:00
parent 1828ac5cd5
commit 92cf69cee1

25
.woodpecker.yml Normal file
View 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