-
Notifications
You must be signed in to change notification settings - Fork 105
/
.drone.yml
78 lines (71 loc) · 1.64 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
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: 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