-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.drone.yml
More file actions
61 lines (54 loc) · 1.05 KB
/
.drone.yml
File metadata and controls
61 lines (54 loc) · 1.05 KB
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
53
54
55
56
57
58
59
60
61
kind: pipeline
type: docker
name: docs
steps:
- name: build
image: elixir:latest
environment:
MIX_ENV: dev
commands:
- mix local.hex --force
- mix local.rebar --force
- mix deps.get --only dev
- mix deps.compile
- mix docs
- ln -s ../docs_config.js doc/docs_config.js
- name: publish
image: drillster/drone-rsync
settings:
hosts: [ soft.vub.ac.be ]
user:
from_secret: publish_ssh_user
key:
from_secret: publish_ssh_key
source: doc/
target: ~/public_html/skitter/docs/${DRONE_TAG:-latest}
recursive: true
delete: true
when:
ref:
- refs/heads/develop
- refs/tags/*
---
kind: pipeline
type: docker
name: notify-failure
clone:
disable: true
steps:
- name: mail
image: drillster/drone-email
settings:
host:
from_secret: mail_host
from:
from_secret: mail_from
username:
from_secret: mail_user
password:
from_secret: mail_pass
trigger:
status:
- failure
depends_on:
- docs