Files
ansible-role-common/.drone.yml
2022-03-11 15:23:20 +13:00

57 lines
922 B
YAML

---
kind: pipeline
name: default
steps:
- name: Test with Molecule
image: guisea/ansible-molecule:latest
volumes:
- name: dockersock
path: /var/run
commands:
- mkdir ${DRONE_REPO_NAME}
- rsync -a . ${DRONE_REPO_NAME} --exclude ${DRONE_REPO_NAME}
- cd ${DRONE_REPO_NAME}
- python3 --version
- ansible --version
- molecule --version
- docker info
- molecule test
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}
---
kind: pipeline
name: example
steps:
- name: test
image: docker:dind
volumes:
- name: dockersock
path: /var/run
commands:
- sleep 5 # give docker enough time to start
- docker ps -a
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}