-
Notifications
You must be signed in to change notification settings - Fork 6
/
.drone.yml
56 lines (50 loc) · 1.15 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
kind: pipeline
type: docker
name: gton-capital
pipeline:
run-test:
image: node:16
commands:
- node --version
- npm --version
- npm cache clean --force
- npm i -d
- npm run build
when:
event:
- pull_request
testnet-deployment:
image: appleboy/drone-ssh
host: test.cli.gton.capital
command_timeout: 30m
settings:
username: root
key:
from_secret: ssh_key
script:
- cd /var/www/test-terminal/.drone/ && sh deploy.sh && mv ../config/config-test.ts ../config/config.ts && docker-compose -f docker-compose-testnet.yml up -d --build --force-recreate
when:
branch:
- develop
event:
- push
mainnet-deployment:
image: appleboy/drone-ssh
host: cli.gton.capital
command_timeout: 30m
settings:
username: root
key:
from_secret: ssh_key
script:
- cd /var/www/terminal-interface/.drone/ && sh deploy.sh && docker-compose -f docker-compose-mainnet.yml up -d --build --force-recreate
when:
branch:
- master
event:
- push
trigger:
branch:
- master
- develop
- feature/CI