forked from thunix/ansible
Drone CI
This commit is contained in:
parent
ce6de7bbc5
commit
3af4e1cf1b
15
.drone.yml
Normal file
15
.drone.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
kind: pipeline
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: syntax
|
||||
image: debian:10
|
||||
commands:
|
||||
- .drone/deps
|
||||
- ansible-playbook -i hosts site.yml --syntax
|
||||
- name: run
|
||||
image: debian:10
|
||||
commands:
|
||||
- .drone/deps
|
||||
- sed -i "s/thunix.net/127.0.0.1/g" hosts
|
||||
- ansible-playbook -i hosts site.yml
|
4
.drone/deps
Executable file
4
.drone/deps
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
apt-get update -qq > /dev/null
|
||||
apt-get dist-upgrade -qq > /dev/null
|
||||
apt-get install ansible -qq > /dev/null
|
Loading…
Reference in New Issue
Block a user