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:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
|
|
||||||
- name: "Ansible-Galaxy: Install from requirements.yml"
|
- name: "Ansible-Galaxy: Install from requirements.yml"
|
||||||
image: gitea.thezengarden.net/podman/images/ansible-dev:latest
|
image: gitea.thezengarden.net/podman/images/ansible-dev:latest
|
||||||
commands:
|
commands:
|
||||||
@ -28,15 +29,25 @@ steps:
|
|||||||
- push
|
- 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
|
image: gitea.thezengarden.net/podman/images/ansible-dev:latest
|
||||||
environment:
|
environment:
|
||||||
ANSIBLE_INVENTORY:
|
ANSIBLE_INVENTORY:
|
||||||
from_secret: ansible_inventory
|
from_secret: ansible_inventory
|
||||||
commands:
|
commands:
|
||||||
- ansible-lint --offline $DRONE_WORKSPACE
|
|
||||||
- ansible-playbook -v -i 127.0.0.1, --connection=local $DRONE_WORKSPACE/hello.yml
|
- ansible-playbook -v -i 127.0.0.1, --connection=local $DRONE_WORKSPACE/hello.yml
|
||||||
- echo "Build complete and successful for $DRONE_REPO_NAME"
|
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- development
|
- development
|
||||||
|
Loading…
x
Reference in New Issue
Block a user