-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.drone.yml
163 lines (139 loc) · 3.25 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
---
kind: pipeline
name: ffdd-server-ci
platform:
os: linux
arch: amd64
steps:
- name: ffdd-debian11-build
image: debian:11
commands:
- echo 'deb http://deb.debian.org/debian unstable main' >> /etc/apt/sources.list
- cd .ci
- cp limit-unstable /etc/apt/preferences.d/limit-unstable
- bash install_deps.sh
- bash build_uci.sh
- name: ffdd-debian11-deploy
image: drillster/drone-rsync
settings:
hosts:
from_secret: HOST
port:
from_secret: PORT
key:
from_secret: SSH_PRIVATE_KEY
user:
from_secret: USER
source: .ci/build/*.deb
target: /var/www/files/server/packages/debian11/
recursive: false
delete: false
- name: ffdd-debian11-clear
image: debian:11
commands:
- test -d .ci/build && rm -r .ci/build
- name: ffdd-debian12-build
image: debian:12
commands:
- echo 'deb http://deb.debian.org/debian unstable main' >> /etc/apt/sources.list
- cd .ci
- cp limit-unstable /etc/apt/preferences.d/limit-unstable
- bash install_deps.sh
- bash build_uci.sh
- name: ffdd-debian12-deploy
image: drillster/drone-rsync
settings:
hosts:
from_secret: HOST
port:
from_secret: PORT
key:
from_secret: SSH_PRIVATE_KEY
user:
from_secret: USER
source: .ci/build/*.deb
target: /var/www/files/server/packages/debian12/
recursive: false
delete: false
- name: ffdd-debian12-clear
image: debian:12
commands:
- test -d .ci/build && rm -r .ci/build
- name: ffdd-ubuntu2004-build
image: ubuntu:20.04
commands:
- cd .ci
- bash install_deps.sh
- bash build_uci.sh
- name: ffdd-ubuntu2004-deploy
image: drillster/drone-rsync
settings:
hosts:
from_secret: HOST
port:
from_secret: PORT
key:
from_secret: SSH_PRIVATE_KEY
user:
from_secret: USER
source: .ci/build/*.deb
target: /var/www/files/server/packages/ubuntu20/
recursive: false
delete: false
#
# u22.04 can't build uci
# use u20.04 build for u22.04
#- name: ffdd-ubuntu2004-clear
# image: ubuntu:20.04
# commands:
# - test -d .ci/build && rm -r .ci/build
#- name: ffdd-ubuntu2204-build
# image: ubuntu:22.04
# commands:
# - cd .ci
# - bash install_deps.sh
# - bash build_uci.sh
- name: ffdd-ubuntu2204-deploy
image: drillster/drone-rsync
settings:
hosts:
from_secret: HOST
port:
from_secret: PORT
key:
from_secret: SSH_PRIVATE_KEY
user:
from_secret: USER
source: .ci/build/*.deb
target: /var/www/files/server/packages/ubuntu22/
recursive: false
delete: false
- name: ffdd-ubuntu2204-clear
image: ubuntu:22.04
commands:
- test -d .ci/build && rm -r .ci/build
- name: ffdd-ubuntu2404-build
image: ubuntu:24.04
commands:
- cd .ci
- bash install_deps.sh
- bash build_uci.sh
- name: ffdd-ubuntu2404-deploy
image: drillster/drone-rsync
settings:
hosts:
from_secret: HOST
port:
from_secret: PORT
key:
from_secret: SSH_PRIVATE_KEY
user:
from_secret: USER
source: .ci/build/*.deb
target: /var/www/files/server/packages/ubuntu24/
recursive: false
delete: false
- name: ffdd-ubuntu2404-clear
image: ubuntu:24.04
commands:
- test -d .ci/build && rm -r .ci/build