-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
62 lines (57 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
kind: pipeline
name: default
type: docker
steps:
- name: test
image: node:18-buster
commands:
- yarn
- yarn test
- name: linting
image: node:18-buster
commands:
- yarn
- yarn lint-test
- name: discord notification
image: appleboy/drone-discord
settings:
webhook_id:
from_secret: discord_id
webhook_token:
from_secret: discord_token
message: >
{{#success build.status}}
Build `{{build.number}}` succeeded.
{{else}}
Build `{{build.number}}` failed.
Changes: {{commit.branch}} / {{commit.message}} from {{commit.author}}.
See: {{build.link}}
{{/success}}
- name: deploy
image: appleboy/drone-ssh
settings:
host:
from_secret: ssh_host
username:
from_secret: ssh_username
password:
from_secret: ssh_password
port:
from_secret: ssh_port
command_timeout: 30m
script:
- docker volume prune -f
- docker image prune -f
- git clone https://github.com/Hi-Ray/infinityedge.git
- cd infinityedge
- git pull
- yarn
- docker-compose down
- docker-compose rm
- docker-compose build
- docker-compose up -d
when:
branch:
- master
status:
- success