more .drone.yml updates
This commit is contained in:
parent
6eed651dc6
commit
353b71d339
17
.drone.yml
17
.drone.yml
@ -17,6 +17,7 @@ steps:
|
||||
event:
|
||||
- push
|
||||
|
||||
|
||||
- name: "Ansible-Galaxy: Install from requirements.yml"
|
||||
image: gitea.thezengarden.net/podman/images/ansible-dev:latest
|
||||
commands:
|
||||
@ -28,15 +29,25 @@ steps:
|
||||
- push
|
||||
|
||||
|
||||
- name: "Syntax check / Linting"
|
||||
- name: "Syntax check and Ansible Lint"
|
||||
image: gitea.thezengarden.net/podman/images/ansible-dev:latest
|
||||
commands:
|
||||
- ansible-lint --offline $DRONE_WORKSPACE
|
||||
- ansible-playbook --syntax-check $DRONE_WORKSPACE/hello.yml
|
||||
when:
|
||||
branch:
|
||||
- development
|
||||
event:
|
||||
- push
|
||||
|
||||
|
||||
- name: "Test playbook execution"
|
||||
image: gitea.thezengarden.net/podman/images/ansible-dev:latest
|
||||
environment:
|
||||
ANSIBLE_INVENTORY:
|
||||
from_secret: ansible_inventory
|
||||
commands:
|
||||
- ansible-lint --offline $DRONE_WORKSPACE
|
||||
- ansible-playbook -v -i 127.0.0.1, --connection=local $DRONE_WORKSPACE/hello.yml
|
||||
- echo "Build complete and successful for $DRONE_REPO_NAME"
|
||||
when:
|
||||
branch:
|
||||
- development
|
||||
|
Loading…
x
Reference in New Issue
Block a user