explain how to use the image for drone matrix builds
This commit is contained in:
parent
c07349308e
commit
43f7789308
18
README.md
18
README.md
@ -10,7 +10,7 @@ Available with four image tags:
|
|||||||
* fedora-24
|
* fedora-24
|
||||||
* alpine-3
|
* alpine-3
|
||||||
|
|
||||||
## run ansible
|
## run ansible as controller
|
||||||
|
|
||||||
docker run -it --rm \
|
docker run -it --rm \
|
||||||
-w /site \
|
-w /site \
|
||||||
@ -22,6 +22,22 @@ Available with four image tags:
|
|||||||
|
|
||||||
Note: /root/.ansible must not be an overlayfs, otherwise ssh accelerate won't work.
|
Note: /root/.ansible must not be an overlayfs, otherwise ssh accelerate won't work.
|
||||||
|
|
||||||
|
## use ansible in drone builds
|
||||||
|
|
||||||
|
build:
|
||||||
|
image: chmuul/ansible:$$OS
|
||||||
|
pull: true
|
||||||
|
commands:
|
||||||
|
- ansible-playbook -i tests/inventory tests/main.yml --syntax-check
|
||||||
|
- ansible-playbook -i tests/inventory tests/main.yml
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
OS:
|
||||||
|
- ubuntu-16.04
|
||||||
|
- fedora-24
|
||||||
|
- debian-8
|
||||||
|
|
||||||
|
|
||||||
## references
|
## references
|
||||||
|
|
||||||
* [project on github](https://github.com/pauvos/ansible)
|
* [project on github](https://github.com/pauvos/ansible)
|
||||||
|
Loading…
Reference in New Issue
Block a user