-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
52 lines (47 loc) · 917 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
kind: pipeline
name: default
steps:
- name: install
image: elixir:1.9
volumes:
- name: mix
path: /root/.mix
commands:
- mix local.rebar --force
- mix local.hex --force
- mix deps.get
- name: test
image: elixir:1.9
volumes:
- name: mix
path: /root/.mix
environment:
DB_HOST: "database"
MIX_ENV: "test"
commands:
- mix format --check-formatted
- mix test
- name: docker
image: plugins/docker
settings:
username: podloveradiator
password:
from_secret: docker_password
repo: podlove/frontman
tags: latest
when:
branch:
- master
event:
- push
services:
- name: database
image: postgres:9-alpine
ports:
- 5432
environment:
POSTGRES_USER: postgres
POSTGRES_DB: frontman_test
volumes:
- name: mix
temp: {}