drone ci updates #4

Merged
chris merged 26 commits from development into main 2023-11-17 12:00:45 -05:00
Showing only changes of commit 353b71d339 - Show all commits

View File

@ -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