-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.drone.yml
36 lines (36 loc) · 961 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
pipeline:
build:
image: gtmanfred/kitchen-salt:latest
environment:
- DOCKER_HOST=tcp://172.18.0.1:2375
- KITCHEN_YAML=.kitchen.docker.yml
commands:
- bundle install
- bundle exec kitchen create nitrogen -l warn -c 4
- bundle exec kitchen converge nitrogen
verify:
image: gtmanfred/kitchen-salt:latest
environment:
- DOCKER_HOST=tcp://172.18.0.1:2375
- KITCHEN_YAML=.kitchen.docker.yml
commands:
- bundle install
- python3 -m pip install -r requirements.txt
- bundle exec kitchen verify nitrogen
clean:
when:
status:
- failure
- success
image: gtmanfred/kitchen-salt:latest
environment:
- DOCKER_HOST=tcp://172.18.0.1:2375
- KITCHEN_YAML=.kitchen.docker.yml
commands:
- bundle install
- bundle exec kitchen list nitrogen
- bundle exec kitchen destroy nitrogen
when:
branch:
include:
- master