forked from TraceNature/redissyncer-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml.bak
90 lines (80 loc) · 1.91 KB
/
.drone.yml.bak
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
---
kind: pipeline
type: docker
name: build
platform:
os: linux
arch: amd64
workspace:
base: /java
path: src/redissyncer-server
clone:
disable: true
steps:
- name: clone
image: alpine/git
commands:
#- export https_proxy=http://10.0.0.101:1081
#- export http_proxy=http://10.0.0.101:1081
#- export all_proxy=socks5://10.0.0.101:1080
- git clone -v https://github.com/TraceNature/redissyncer-server.git .
- name: build
image: maven:3-jdk-8
volumes:
- name: m2
path: /root/.m2
commands:
# - export https_proxy=http://10.0.0.101:1081
# - export http_proxy=http://10.0.0.101:1081
# - export all_proxy=socks5://10.0.0.101:1080
- mvn clean package -Ddockerfile.skip -B -V
- name: stopserver
image: appleboy/drone-ssh
settings:
host:
- 10.0.0.21
# - 10.0.0.22
# - 10.0.0.23
key_path: ./id_rsa
script:
- /root/redissyncer-server/redissyncer.sh stop
- sleep 15
username: root
- name: publish
image: appleboy/drone-scp
settings:
host:
- 10.0.0.21
# - 10.0.0.22
# - 10.0.0.23
key_path: ./id_rsa
port: 22
source: syncer-webapp/redissyncer-server.jar
target: /root/redissyncer-server/
user: root
- name: move_jar
image: appleboy/drone-ssh
settings:
host:
- 10.0.0.21
# - 10.0.0.22
# - 10.0.0.23
key_path: ./id_rsa
script:
- mv /root/redissyncer-server/syncer-webapp/redissyncer-server.jar /root/redissyncer-server/
username: root
- name: startserver
image: appleboy/drone-ssh
settings:
host:
- 10.0.0.21
# - 10.0.0.22
# - 10.0.0.23
key_path: ./id_rsa
script:
- /root/redissyncer-server/redissyncer.sh start
username: root
volumes:
- name: m2
host:
path: /root/.m2