-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.drone.yml
59 lines (59 loc) · 1.5 KB
/
.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
53
54
55
56
57
58
59
kind: pipeline
name: default
steps:
- name: build_book
image: node:8.11
environment:
GA_CODE: UA-60024048-1
MIXPANEL_TOKEN: 94fbb49ee4dd0cbee68e6a4c057d3ced
commands:
- npm i -g gitbook-cli
- gitbook install
- gitbook build
- name: test_build
image: alpine:3.7
commands:
- "cat _book/index.html | grep 'simple, solid, certified'"
- name: build_image
image: plugins/docker
settings:
storage_driver: overlay
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: kontena/pharos-docs
tags:
- ${DRONE_BRANCH}
when:
branch: ['master']
event: ['push']
- name: deploy
image: quay.io/kontena/mortar:0.3
pull: true
environment:
KUBE_TOKEN:
from_secret: kube_token
KUBE_CA:
from_secret: kube_ca
KUBE_SERVER:
from_secret: kube_server
commands:
- mortar fire -d --var "git_branch=${DRONE_BRANCH}" --var "build_number=${DRONE_BUILD_NUMBER}" _deploy/template/ "pharos-docs-${DRONE_BRANCH}"
when:
branch: ['master']
event: ['push']
- name: default_ingress
image: quay.io/kontena/mortar:0.3
environment:
KUBE_TOKEN:
from_secret: kube_token
KUBE_CA:
from_secret: kube_ca
KUBE_SERVER:
from_secret: kube_server
commands:
- mortar fire -d _deploy/ingress.yml "pharos-docs-default-ingress"
when:
branch: ['master']
event: ['push']