-
Notifications
You must be signed in to change notification settings - Fork 1
/
.drone.yml
42 lines (40 loc) · 884 Bytes
/
.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
kind: pipeline
name: default
steps:
- name: preview
image: registry.webix.io/js-build-env
when:
event:
- push
branch:
exclude:
- release
environment:
PREVIEW_HOOK_TOKEN:
from_secret: preview_hook_token
AWS_ACCESS_KEY_ID:
from_secret: aws_access_key_id
AWS_SECRET_ACCESS_KEY:
from_secret: aws_secret_access_key
commands:
- yarn install --pure-lockfile
- yarn build
- /bin/bash ./deploy.sh
- name: release
image: registry.webix.io/js-build-env
when:
event:
- push
branch:
- release
environment:
DEPLOY_HOOK_TOKEN:
from_secret: deploy_hook_token
AWS_ACCESS_KEY_ID:
from_secret: aws_access_key_id
AWS_SECRET_ACCESS_KEY:
from_secret: aws_secret_access_key
commands:
- yarn install --pure-lockfile
- yarn standalone
- /bin/bash ./deploy.sh