drone-test-1/.drone.yml
Chris Hammer 0fe8cb5121
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build encountered an error
add trigger
2023-11-16 23:58:23 -05:00

39 lines
965 B
YAML

---
name: Test Ansible Linting of drone-test-1
kind: pipeline
type: docker
trigger:
- pull_request
- push
steps:
- name: Testing Drone CI with a simple Ansible Playbook
image: gitea.thezengarden.net/podman/images/ansible-dev:latest
environment:
GITEA_TOKEN:
from_secret: gitea_token
ANSIBLE_INVENTORY:
from_secret: ansible_inventory
commands:
- ansible-galaxy install -r $DRONE_WORKSPACE/requirements.yml
- ansible-lint --offline $DRONE_WORKSPACE
- ansible-playbook -v -i $ANSIBLE_INVENTORY $DRONE_WORKSPACE/hello.yml
- echo "GITEA_TOKEN=$GITEA_TOKEN"
when:
branch:
- development
- name: post-to-gitea-pr-from-arg
image: tsakidev/giteacomment:latest
settings:
gitea_token:
from_secret: gitea_token
gitea_base_url: http://gitea.thezengarden.net
comment: "Hello from Drone"
when:
# status: [ failure ]
event: pull_request