drone-test-1/.drone.yml
Chris Hammer 2a3f2b6b19
All checks were successful
continuous-integration/drone/push Build is passing
remove duplicate hostname; fixed order so packages install prior to calling anything
2023-11-13 00:10:41 -05:00

19 lines
524 B
YAML

---
name: Ansible Linting of drone-test-1
kind: pipeline
type: docker
steps:
- name: Prepare CentOS 9 Stream image, clone, and test code
image: quay.io/centos/centos:stream9
commands:
- dnf update -y
- dnf install -y python3-pip git hostname
- hostname
- lscpu
- pip3 install ansible-core==2.14.11 ansible-lint==6.13.1
- mkdir /opt/test
- git clone https://gitea.thezengarden.net/chris/drone-test-1.git /opt/test/drone-test-1
- ansible-lint /opt/test/drone-test-1