This repository was archived by the owner on May 23, 2021. It is now read-only.
File tree 1 file changed +247
-0
lines changed
1 file changed +247
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Drone CI Pipeline for nbin
2
+
3
+ # # AMD64 Pipeline - Master Build Test
4
+ kind : pipeline
5
+ type : docker
6
+ name : build-master-amd64
7
+
8
+ platform :
9
+ arch : amd64
10
+
11
+ steps :
12
+
13
+ - name : restore-cache
14
+ image : chinodesuuu/drone-volume-cache:amd64
15
+ volumes :
16
+ - name : ccache-amd64
17
+ path : /cache
18
+ settings :
19
+ restore : true
20
+ mount :
21
+ - /root/.cache/ccache
22
+
23
+ - name : build
24
+ image : node:12
25
+ commands :
26
+ - apt update && apt install -y build-essential ccache
27
+ - yarn
28
+ - yarn build
29
+ - yarn test
30
+
31
+ - name : rebuild-cache
32
+ image : chinodesuuu/drone-volume-cache:amd64
33
+ volumes :
34
+ - name : ccache-amd64
35
+ path : /cache
36
+ settings :
37
+ rebuild : true
38
+ mount :
39
+ - /root/.cache/ccache
40
+
41
+ ---
42
+ # # ARM64 - Master Build Test
43
+ kind : pipeline
44
+ type : docker
45
+ name : build-master-arm64
46
+
47
+ platform :
48
+ arch : arm64
49
+
50
+ steps :
51
+
52
+ - name : restore-cache
53
+ image : chinodesuuu/drone-volume-cache:arm64
54
+ volumes :
55
+ - name : ccache-arm64
56
+ path : /cache
57
+ settings :
58
+ restore : true
59
+ mount :
60
+ - /root/.cache/ccache
61
+
62
+ - name : build
63
+ image : node:12
64
+ commands :
65
+ - apt update && apt install -y build-essential ccache
66
+ - yarn
67
+ - yarn build
68
+ - yarn test
69
+
70
+ - name : rebuild-cache
71
+ image : chinodesuuu/drone-volume-cache:arm64
72
+ volumes :
73
+ - name : ccache-arm64
74
+ path : /cache
75
+ settings :
76
+ rebuild : true
77
+ mount :
78
+ - /root/.cache/ccache
79
+
80
+ ---
81
+ # # ARM - Master Build Test
82
+ kind : pipeline
83
+ type : docker
84
+ name : build-master-arm
85
+
86
+ platform :
87
+ arch : arm
88
+
89
+ steps :
90
+
91
+ - name : restore-cache
92
+ image : chinodesuuu/drone-volume-cache:arm
93
+ volumes :
94
+ - name : ccache-arm
95
+ path : /cache
96
+ settings :
97
+ restore : true
98
+ mount :
99
+ - /root/.cache/ccache
100
+
101
+ - name : build
102
+ image : node:12
103
+ commands :
104
+ - apt update && apt install -y build-essential ccache
105
+ - yarn
106
+ - yarn build
107
+ - yarn test
108
+
109
+ - name : rebuild-cache
110
+ image : chinodesuuu/drone-volume-cache:arm
111
+ volumes :
112
+ - name : ccache-arm
113
+ path : /cache
114
+ settings :
115
+ rebuild : true
116
+ mount :
117
+ - /root/.cache/ccache
118
+
119
+
120
+ ---
121
+ # # AMD64 - Release
122
+ kind : pipeline
123
+ type : docker
124
+ name : rel-amd64
125
+
126
+ platform :
127
+ arch : amd64
128
+
129
+ steps :
130
+
131
+ - name : restore-cache
132
+ image : chinodesuuu/drone-volume-cache:amd64
133
+ volumes :
134
+ - name : ccache-amd64
135
+ path : /cache
136
+ settings :
137
+ restore : true
138
+ mount :
139
+ - /root/.cache/ccache
140
+
141
+ - name : build
142
+ image : node:12
143
+ commands :
144
+ - apt update && apt install -y build-essential ccache
145
+ - yarn
146
+ - yarn build
147
+ - yarn test
148
+
149
+ - name : deploy
150
+ image : plugins/gcs
151
+ settings :
152
+ source : build/
153
+ target : nbin.cdr.sh
154
+ token :
155
+ from_secret : gcs-token
156
+
157
+ trigger :
158
+ branch :
159
+ - master
160
+ event :
161
+ - tag
162
+
163
+ ---
164
+ # # ARM64 - Release
165
+ kind : pipeline
166
+ type : docker
167
+ name : rel-arm64
168
+
169
+ platform :
170
+ arch : arm64
171
+
172
+ steps :
173
+
174
+ - name : restore-cache
175
+ image : chinodesuuu/drone-volume-cache:arm64
176
+ volumes :
177
+ - name : ccache-arm64
178
+ path : /cache
179
+ settings :
180
+ restore : true
181
+ mount :
182
+ - /root/.cache/ccache
183
+
184
+ - name : build
185
+ image : node:12
186
+ commands :
187
+ - apt update && apt install -y build-essential ccache
188
+ - yarn
189
+ - yarn build
190
+ - yarn test
191
+
192
+ - name : deploy
193
+ image : plugins/gcs
194
+ settings :
195
+ source : build/
196
+ target : nbin.cdr.sh
197
+ token :
198
+ from_secret : gcs-token
199
+
200
+ trigger :
201
+ branch :
202
+ - master
203
+ event :
204
+ - tag
205
+
206
+ ---
207
+ # # ARM - Release
208
+ kind : pipeline
209
+ type : docker
210
+ name : rel-arm
211
+
212
+ platform :
213
+ arch : arm
214
+
215
+ steps :
216
+
217
+ - name : restore-cache
218
+ image : chinodesuuu/drone-volume-cache:arm
219
+ volumes :
220
+ - name : ccache-arm
221
+ path : /cache
222
+ settings :
223
+ restore : true
224
+ mount :
225
+ - /root/.cache/ccache
226
+
227
+ - name : build
228
+ image : node:12
229
+ commands :
230
+ - apt update && apt install -y build-essential ccache
231
+ - yarn
232
+ - yarn build
233
+ - yarn test
234
+
235
+ - name : deploy
236
+ image : plugins/gcs
237
+ settings :
238
+ source : build/
239
+ target : nbin.cdr.sh
240
+ token :
241
+ from_secret : gcs-token
242
+
243
+ trigger :
244
+ branch :
245
+ - master
246
+ event :
247
+ - tag
You can’t perform that action at this time.
0 commit comments