Add CI #4

Merged
noah.knegt merged 9 commits from ci into master 2023-03-30 14:47:55 +02:00
2 changed files with 28 additions and 0 deletions
Showing only changes of commit 3d94890d6c - Show all commits

View File

@@ -4,7 +4,25 @@ type: docker
name: ansible
steps:
- name: ansible check
image: plugins/ansible:3
settings:
check: true
- name: yaml lint
image: cytopia/yamllint:alpine
commands:
- 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