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
|
projects:
- project: dummy-ikiwiki
parameters: &ikiwiki_params
rsync_src: html
systree_name: systrees-debian-stretch-distix
notify: [liw@liw.fi]
pipelines: &ikiwiki_pipelines
- ick/setup_container
- ick/get_sources
- ql_ikiwiki_publish
- project: ick.liw.fi
parameters:
<<: *ikiwiki_params
rsync_target: ickliwfi@pieni.net:/srv/http/ick.liw.fi
sources:
- name: source
ref: master
location: src
repo: git://git.liw.fi/ick.liw.fi
pipelines: *ikiwiki_pipelines
- project: vmdb2.liw.fi
parameters:
<<: *ikiwiki_params
rsync_target: ickliwfi@pieni.net:/srv/http/vmdb2.liw.fi
sources:
- name: source
ref: master
location: src
repo: git://git.liw.fi/vmdb2.liw.fi
pipelines: *ikiwiki_pipelines
- project: noir.liw.fi
parameters:
<<: *ikiwiki_params
rsync_target: ickliwfi@pieni.net:/srv/http/noir.liw.fi
sources:
- name: source
ref: master
location: src
repo: git://git.liw.fi/noir.liw.fi
pipelines: *ikiwiki_pipelines
- project: intra.qvarnlabs.net
parameters:
<<: *ikiwiki_params
notify: [liw@qvarnlabs.com, ivan@qvarnlabs.com]
rsync_target: static@static.qvarnlabs.net:/srv/http/intra.qvarnlabs.net
sources:
- name: source
ref: master
location: src
repo: ssh://git@git.qvarnlabs.net/intrawiki
pipelines: *ikiwiki_pipelines
- project: www.qvarn.org
parameters:
<<: *ikiwiki_params
notify: [liw@qvarnlabs.com, ivan@qvarnlabs.com]
rsync_target: static@static.qvarnlabs.net:/srv/http/www.qvarn.org
sources:
- name: source
ref: master
location: src
repo: ssh://git@git.qvarnlabs.net/www.qvarn.org
pipelines: *ikiwiki_pipelines
- project: www.qvarnlabs.com
parameters:
<<: *ikiwiki_params
notify: [liw@qvarnlabs.com, ivan@qvarnlabs.com]
rsync_target: static@static.qvarnlabs.net:/srv/http/www.qvarnlabs.com
sources:
- name: source
ref: master
location: src
repo: ssh://git@git.qvarnlabs.net/www.qvarnlabs.com
pipelines: *ikiwiki_pipelines
- project: ick-biz.liw.fi
parameters:
<<: *ikiwiki_params
notify: [liw@liw.fi]
rsync_target: ickliwfi@pieni.net:/srv/http/ick-biz.liw.fi
sources:
- name: source
ref: master
location: src
repo: ssh://git@git.liw.fi/ick-biz
pipelines: *ikiwiki_pipelines
- project: ick-yarns.liw.fi
parameters:
sources:
- name: code
ref: master
location: src
repo: git://git.liw.fi/ick2
rsync_src: html
rsync_target: ickliwfi@pieni.net:/srv/http/ick-yarns.liw.fi
systree_name: systrees-debian-stretch-distix
notify: [liw@liw.fi]
pipelines:
- ick/setup_container
- ick/get_sources
- publish_yarns
- project: ick-pres.liw.fi
parameters:
sources:
- name: source
ref: master
location: src
repo: ssh://git@git.liw.fi/ick2-pres
rsync_src: html
rsync_target: ickliwfi@pieni.net:/srv/http/ick-pres.liw.fi
systree_name: systrees-debian-stretch-distix
notify: [liw@liw.fi]
pipelines:
- ick/setup_container
- ick/get_sources
- git_export_website
- project: vmdb2-manual
parameters:
sources:
- name: source
ref: master
location: src
repo: git://git.liw.fi/vmdb2
rsync_src: html
rsync_target: ickliwfi@pieni.net:/srv/http/vmdb2-manual.liw.fi
systree_name: systrees-debian-sid-build-essential
notify: [liw@liw.fi]
pipelines:
- ick/setup_container
- ick/get_sources
- publish_vmdb2_manual
pipelines:
- pipeline: ql_ikiwiki_publish
parameters:
- sources
- rsync_src
- rsync_target
actions:
- python: |
import os, re
env = dict(os.environ)
env['LC_ALL'] = 'fi_FI.UTF8'
sources = params['sources']
for source in sources:
dirname = source['location']
RUN('rm', '-rf', 'html', 'tmp')
RUN('ql-ikiwiki-preprocess', dirname, 'tmp', env=env)
RUN('sed', '-i', '/^srcdir:/d', 'tmp/ikiwiki.setup', env=env)
RUN('sed', '-i', '/^destdir:/d', 'tmp/ikiwiki.setup', env=env)
with open('tmp/ikiwiki.setup', 'a') as f:
f.write('srcdir: /workspace/tmp\n')
f.write('destdir: /workspace/html\n')
RUN('ikiwiki', '--setup', 'tmp/ikiwiki.setup', '--verbose', env=env)
where: container
- action: rsync
where: host
- pipeline: publish_yarns
parameters:
- rsync_src
- rsync_target
actions:
- shell: |
mkdir html
cd src/yarns
pandoc \
--toc \
--standalone \
--self-contained \
-H yarn.css \
-o /workspace/html/index.html \
*.yarn
where: container
- action: rsync
where: host
- pipeline: git_export_website
parameters:
- rsync_src
- rsync_target
actions:
- shell: |
html="$(params | jq -r .rsync_src)"
mkdir "$html"
cd src
git archive HEAD | tar -C "../$html" -xf -
where: container
- action: rsync
where: host
- pipeline: publish_vmdb2_manual
parameters:
- rsync_src
- rsync_target
actions:
- shell: |
apt install -y pandoc texlive texlive-xetex fonts-freefont-ttf
mkdir html
cd src
./format.sh
cp vmdb2.html ../src/index.html
where: container
- action: rsync
where: host
|