-
Notifications
You must be signed in to change notification settings - Fork 192
/
.drone.yml
86 lines (76 loc) · 1.35 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
---
kind: pipeline
type: docker
name: default
clone:
depth: 1
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
steps:
- name: Fast build
image: docker
when:
event:
exclude:
- tag
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- docker build .
- name: Build
image: node:12
when:
event:
- tag
commands:
- npm i
- ./super-tabs.sh setup
- ./super-tabs.sh build
- name: Publish
image: node:12
when:
event:
- tag
environment:
NPM_TOKEN:
from_secret: npm_token
commands:
- echo '//registry.npmjs.org/:_authToken=$${NPM_TOKEN}' > ~/.npmrc
- ./super-tabs.sh publish
- name: Generate docs
image: harbor.zyra.ca/public/zmdocs:v1.1.0
when:
branch:
- master
commands:
- zmdocs g
- name: Publish docs
image: plugins/gh-pages
when:
event:
exclude:
- pull_request
branch:
- master
settings:
username:
from_secret: gh_user
password:
from_secret: gh_token
pages_directory: docs
#- name: Update example project
# image: plugins/downstream
# settings:
# server: https://drone.zyra.ca
# token:
# from_secret: drone_token
# repositories:
# - zyra/ionic-super-tabs-example
# fork: true
---
kind: signature
hmac: 325be6f79fe9c33c34d9376df0ffce76ae06e1e831666c434bdfa2c45837b85b
...