forked from buildo/pledge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
54 lines (51 loc) · 1.16 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
build:
config:
image: node:6
environment:
- NPM_CONFIG_CACHE=/drone/.npm
- NPM_CONFIG_LOGLEVEL=warn
commands:
- export TZ="Europe/Rome"
- ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
- cp config-ci.json config.json
- npm install -g yarn
- yarn
- yarn test
- yarn run lint
- cp config-prod.json config.json
publish:
docker:
registry: quay.io
username: $$QUAY_USERNAME
password: $$QUAY_PASSWORD
email: $$QUAY_EMAIL
repo: buildo/pledge
force_tag: true
tag:
- latest
- $$COMMIT
deploy:
ssh:
host: jar.srv.buildo.io
user: root
port: 22
commands:
- crane lift pledge
when:
branch: master
notify:
slack:
webhook_url: "$$BUILDO_SLACK_WEBHOOK_URL"
channel: pledge
username: drone
template: |
{{#success build.status}}
:tada: New version of *pledge* deployed! (_commit <{{ build.link_url }}|$$COMMIT>_)
{{else}}
:cold_sweat: Something went wrong with the deploy!
{{/success}}
when:
branch: master
success: true
failure: true
change: false