-
Notifications
You must be signed in to change notification settings - Fork 1
/
.drone.yml
60 lines (56 loc) · 1.42 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
kind: pipeline
type: docker
name: umls-search-server
steps:
- name: stop service
image: appleboy/drone-ssh
settings:
host:
from_secret: ssh_host
username:
from_secret: ssh_username
key:
from_secret: ssh_key
command_timeout: 2m
script:
- systemctl --user stop umls-search
- name: build
image: maven:3.9.2-eclipse-temurin-17-alpine
volumes:
- name: metamaplite_data
path: /tmp/metamaplite
- name: metamaplite_jar
path: /tmp/metamaplite.jar
- name: target_path
path: /var/umls-search
environment:
MMLITE_DIR: /tmp/metamaplite
commands:
- mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=/tmp/metamaplite.jar
- |
mvn -f server/pom.xml install \
-Pci \
-Ddir=/var/umls-search \
-DfinalName=server
- name: start service
image: appleboy/drone-ssh
settings:
host:
from_secret: ssh_host
username:
from_secret: ssh_username
key:
from_secret: ssh_key
command_timeout: 2m
script:
- systemctl --user start umls-search
volumes:
- name: metamaplite_data
host:
path: /home/umlssearch/metamaplite
- name: metamaplite_jar
host:
path: /home/umlssearch/metamaplite-3.6.2rc8-standalone.jar
- name: target_path
host:
path: /home/umlssearch/target