forked from instantlinux/docker-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
286 lines (255 loc) · 5.99 KB
/
.gitlab-ci.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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
# created 30-may-20 by richb@instantlinux.net
stages:
- prepare
- data-sync
- blacklist
- dhcpd-dns-pxe
- dovecot
- ez-ipupdate
- git-dump
- git-pull
- haproxy-keepalived
- mt-daapd
- mysqldump
- nagios
- nagiosql
- nut-upsd
- postfix
- postfix-python
- proftpd
- python-builder
- python-wsgi
- rsyslogd
- samba
- samba-dc
- spamassassin
- udp-nginx-proxy
- vsftpd
- weewx
- wxcam-upload
image: docker:19.03.8
prepare:
stage: prepare
script:
- IMAGES=$(find images -maxdepth 1 -exec basename {} \;)
- for IMG in $IMAGES; do
sed -e "s/{{ IMAGE }}/$IMG/" .image-gitlab-ci.yml > .child-$IMG.yml;
done
artifacts:
paths: [ .child-*.yml ]
# TODO: this is an egregious case of non-DRY code. Each could be
# reduced to 2 lines by variable interpolation -- for example, the
# artifact could be specified as .child-$CI_JOB_NAME.yml. But that is
# not possible until a 2017 feature request is eventually implemented:
# https://gitlab.com/gitlab-org/gitlab-runner/-/issues/1809
# TODO: figure out why these have to be assigned to separate stages,
# without waiting for completion (strategy: depend); putting more than
# one in a stage gives "unknown failure"
smoketest:
stage: git-dump
trigger:
include:
- artifact: .child-git-dump.yml
job: prepare
# TODO figure out a way to collect all child pipeline results
strategy: depend
blacklist:
stage: blacklist
trigger:
include:
- artifact: .child-blacklist.yml
job: prepare
only:
changes: [ images/blacklist/**, lib/**, .image-gitlab-ci.yml ]
data-sync:
stage: data-sync
trigger:
include:
- artifact: .child-data-sync.yml
job: prepare
only:
changes: [ images/data-sync/**, lib/**, .image-gitlab-ci.yml ]
dhcpd-dns-pxe:
stage: dhcpd-dns-pxe
trigger:
include:
- artifact: .child-dhcpd-dns-pxe.yml
job: prepare
only:
changes: [ images/dhcpd-dns-pxe/**, lib/**, .image-gitlab-ci.yml ]
dovecot:
stage: dovecot
trigger:
include:
- artifact: .child-dovecot.yml
job: prepare
only:
changes: [ images/dovecot/**, lib/**, .image-gitlab-ci.yml ]
ez-ipupdate:
stage: ez-ipupdate
trigger:
include:
- artifact: .child-ez-ipupdate.yml
job: prepare
only:
changes: [ images/ez-ipupdate/**, lib/**, .image-gitlab-ci.yml ]
git-pull:
stage: git-pull
trigger:
include:
- artifact: .child-git-pull.yml
job: prepare
only:
changes: [ images/git-pull/**, lib/**, .image-gitlab-ci.yml ]
haproxy-keepalived:
stage: haproxy-keepalived
trigger:
include:
- artifact: .child-haproxy-keepalived.yml
job: prepare
only:
changes: [ images/haproxy-keepalived/**, lib/**, .image-gitlab-ci.yml ]
mt-daapd:
stage: mt-daapd
trigger:
include:
- artifact: .child-mt-daapd.yml
job: prepare
only:
changes: [ images/mt-daapd/**, lib/**, .image-gitlab-ci.yml ]
mysqldump:
stage: mysqldump
trigger:
include:
- artifact: .child-mysqldump.yml
job: prepare
only:
changes: [ images/mysqldump/**, lib/**, .image-gitlab-ci.yml ]
nagios:
stage: nagios
trigger:
include:
- artifact: .child-nagios.yml
job: prepare
only:
changes: [ images/nagios/**, lib/**, .image-gitlab-ci.yml ]
nagiosql:
stage: nagiosql
trigger:
include:
- artifact: .child-nagiosql.yml
job: prepare
only:
changes: [ images/nagiosql/**, lib/**, .image-gitlab-ci.yml ]
nut-upsd:
stage: nut-upsd
trigger:
include:
- artifact: .child-nut-upsd.yml
job: prepare
only:
changes: [ images/nut-upsd/**, lib/**, .image-gitlab-ci.yml ]
postfix:
stage: postfix
trigger:
include:
- artifact: .child-postfix.yml
job: prepare
only:
changes: [ images/postfix/**, lib/**, .image-gitlab-ci.yml ]
postfix-python:
stage: postfix-python
trigger:
include:
- artifact: .child-postfix-python.yml
job: prepare
only:
changes: [ images/postfix-python/**, lib/**, .image-gitlab-ci.yml ]
proftpd:
stage: proftpd
trigger:
include:
- artifact: .child-proftpd.yml
job: prepare
only:
changes: [ images/proftpd/**, lib/**, .image-gitlab-ci.yml ]
python-builder:
stage: python-builder
trigger:
include:
- artifact: .child-python-builder.yml
job: prepare
only:
changes: [ images/python-builder/**, lib/**, .image-gitlab-ci.yml ]
python-wsgi:
stage: python-wsgi
trigger:
include:
- artifact: .child-python-wsgi.yml
job: prepare
only:
changes: [ images/python-wsgi/**, lib/**, .image-gitlab-ci.yml ]
rsyslogd:
stage: rsyslogd
trigger:
include:
- artifact: .child-rsyslogd.yml
job: prepare
only:
changes: [ images/rsyslogd/**, lib/**, .image-gitlab-ci.yml ]
samba:
stage: samba
trigger:
include:
- artifact: .child-samba.yml
job: prepare
only:
changes: [ images/samba/**, lib/**, .image-gitlab-ci.yml ]
samba-dc:
stage: samba-dc
trigger:
include:
- artifact: .child-samba-dc.yml
job: prepare
only:
changes: [ images/samba-dc/**, lib/**, .image-gitlab-ci.yml ]
spamassassin:
stage: spamassassin
trigger:
include:
- artifact: .child-spamassassin.yml
job: prepare
only:
changes: [ images/spamassassin/**, lib/**, .image-gitlab-ci.yml ]
udp-nginx-proxy:
stage: udp-nginx-proxy
trigger:
include:
- artifact: .child-udp-nginx-proxy.yml
job: prepare
only:
changes: [ images/udp-nginx-proxy/**, lib/**, .image-gitlab-ci.yml ]
vsftpd:
stage: vsftpd
trigger:
include:
- artifact: .child-vsftpd.yml
job: prepare
only:
changes: [ images/vsftpd/**, lib/**, .image-gitlab-ci.yml ]
weewx:
stage: weewx
trigger:
include:
- artifact: .child-weewx.yml
job: prepare
only:
changes: [ images/weewx/**, lib/**, .image-gitlab-ci.yml ]
wxcam-upload:
stage: wxcam-upload
trigger:
include:
- artifact: .child-wxcam-upload.yml
job: prepare
only:
changes: [ images/wxcam-upload/**, lib/**, .image-gitlab-ci.yml ]