forked from automatedom/Rythm-documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.drone.yml
More file actions
67 lines (63 loc) · 1.29 KB
/
.drone.yml
File metadata and controls
67 lines (63 loc) · 1.29 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
62
63
64
65
66
67
kind: pipeline
type: docker
name: build
concurrency:
limit: 1
steps:
- name: docker-build
image: plugins/docker
settings:
dockerfile: ./Dockerfile
repo: dock.rythm.online/web/docs
registry: dock.rythm.online
tags:
- ${DRONE_COMMIT_SHA}
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event:
- push
- name: deploy
image: quay.io/rythm-bot/drone-kubernetes
settings:
kubernetes_server:
from_secret: kube_host
kubernetes_cert:
from_secret: kube_ca_cert
kubernetes_token:
from_secret: kube_service_token
namespace: web
deployment: docs
container: docs
repo: dock.rythm.online/web/docs
tag: ${DRONE_COMMIT_SHA}
when:
branch:
- master
event:
- push
- name: wait
image: busybox
commands:
- sleep 30
when:
branch:
- master
event:
- push
- name: clear-cache
pull: if-not-exists
image: 'jetrails/drone-cloudflare-caching'
settings:
zone_identifier:
from_secret: cf_zone_id
api_token:
from_secret: cf_api_token
action: purge_everything
when:
branch:
- master
event:
- push