-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·351 lines (336 loc) · 9.9 KB
/
index.html
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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<title>Presentation: GitLab to Azure auto-deploy</title>
<link
href="https://fonts.googleapis.com/css?family=Gudea&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="css/reset.css" />
<link rel="stylesheet" href="css/reveal.min.css" />
<link rel="stylesheet" href="css/theme/black.css" />
<link rel="stylesheet" href="lib/css/monokai.css" />
<link rel="stylesheet" href="css/presentation.css" />
</head>
<body>
<div class="reveal">
<div class="slides">
<footer
style="opacity: 0.6; position: absolute; left: 2px; bottom: 2px;"
>
<img
src="assets/infi-con-2019.png"
alt="INFI-CON 2019, Maandag 27 mei"
style="max-width: 4em;"
/>
</footer>
<section>
<h1>GitLab to Azure auto-deploy</h1>
<p>Sander Vink</p>
<p>INFI-CON 2019, May 27th</p>
</section>
<section data-transition="slide">
<h2>Deployment in the good old days</h2>
<section>
<p>
<img
src="assets/UltraEdit.png"
alt="UltraEdit logo"
style="max-width: 256px;"
class="transparent"
/>
<span style="min-width: 2em;"> </span>
<img
src="assets/TextWrangler.png"
alt="TextWrangler logo"
style="max-width: 256px;"
class="transparent"
/>
</p>
</section>
<section><p>Open/save files over FTP;</p></section>
<section><p>Or over FTPS;</p></section>
<section><p>Or was it SFTP?</p></section>
<section>
<p>
<img src="assets/ChildConfused.jpg" alt="Confused child" />
</p>
</section>
<section><p>Right... they exist both!</p></section>
<section><p>FTPS: FTP over SSL, with TLS support</p></section>
<section>
<p>SFTP: SSH FTP, like SCP (but different)</p>
</section>
</section>
<section data-transition="slide">
<h2>So FTP works, right?</h2>
<section><p>Well... sure!</p></section>
<section><p>But...</p></section>
<section>
<p>
<img
src="assets/GunDrawingFlowers.png"
alt="Gun drawing with flowers"
/>
</p>
</section>
<section>
<p>
<img
src="assets/CarCollisionWithHouse.jpg"
alt="Car collision with house"
/>
</p>
</section>
<section>
<p>
<img
src="assets/LittleBoyFrustrated.jpg"
alt="Little boy frustrated"
/>
</p>
</section>
</section>
<section data-transition="slide">
<h2>Then came version control</h2>
<section>
<ul>
<li>CVS</li>
<li>Subversion</li>
<li>Git</li>
</ul>
</section>
<section>
<p>
<img
src="assets/GitBranchesIntroduction.svg"
alt="Git branches introduction"
/>
</p>
</section>
<section>
<p>
<img src="assets/TrumpItsGreat.jpg" alt="Trump, it's great" />
</p>
</section>
<section>
<p>Well... it's <em>better</em>, but not great yet!</p>
</section>
<section>
<p>
<img
src="assets/TripAndFall.png"
alt="Trip and fall"
class="transparent"
/>
</p>
</section>
</section>
<section data-transition="slide">
<h2>Let's automate things</h2>
<section>
<p>You have probably heard of CI & CD, right?</p>
</section>
<section>
<p>You know... stuff like:</p>
<ul>
<li>Continuous Integration</li>
<li>Continuous Delivery</li>
<li>Continuous Deployment</li>
</ul>
</section>
<section>
<p>So basically we want to:</p>
<ul>
<li>build our software,</li>
<li>test our software,</li>
<li>and deploy our software</li>
</ul>
<p>... automatically!</p>
</section>
<section>
<p>We can use GitLab Pipelines for that</p>
</section>
</section>
<section data-transition="slide">
<h2>Pipeline configuration</h2>
<section>
<p>Pipelines are defined in the <code>.gitlab-ci.yml</code> file</p>
</section>
<section>
<p>Jobs are the basic configuration component</p>
</section>
<section>
<p>
<img src="assets/JobExample.png" alt="Job example" />
</p>
</section>
<section>
<p>Stages are defined using the <codes>stages</codes> keyword</p>
</section>
<section>
<p>
<img src="assets/StagesExample.png" alt="Stages example" />
</p>
</section>
<section>
<p>By default the listed stages are executed in order</p>
</section>
<section>
<p>
<img
src="assets/PipelineExample.png"
alt="GitLab Pipeline example"
/>
</p>
</section>
</section>
<section data-transition="slide">
<h2>Job details</h2>
<section>
<p>
<img
src="assets/Before-script-details.png"
alt="Before script details"
/>
</p>
</section>
<section>
<p>
<img src="assets/Job-succeeded.png" alt="Job succeeded" />
</p>
</section>
<section>
<p>
<img src="assets/Job-failed.png" alt="Job failed" />
</p>
</section>
</section>
<section data-transition="slide">
<h2>Deploy to Azure</h2>
<section>
<p>
<img
src="assets/Deployment-with-zip-file.png"
alt="Deployment with ZIP file"
/>
</p>
</section>
<section>
<p>
<img
src="assets/Deploy-with-ftp-credentials.png"
alt="Deploy with FTP credentials"
/>
</p>
</section>
<section>
<p>
<img src="assets/Deploy-using-git.png" alt="Deploy using Git" />
</p>
</section>
<section>
<p>
<img src="assets/Git-job-succeeded.png" alt="Git job succeeded" />
</p>
</section>
</section>
<section data-transition="slide">
<h2>Azure post deployment commands</h2>
<section>
<p>
<img
src="assets/Running-post-deployment-commands.png"
alt="Running post deployment commands"
/>
</p>
</section>
<section>
<h3>site\deployments\tools\PostDeploymentActions</h3>
</section>
<section>
<p>
<img src="assets/EF-core-result.png" alt="EF Core result" />
</p>
</section>
</section>
<section data-transition="slide">
<h2>Job details</h2>
<section>
<p>
<img
src="assets/Before-script-details.png"
alt="Before script details"
/>
</p>
</section>
<section>
<p>
<img src="assets/Job-succeeded.png" alt="Job succeeded" />
</p>
</section>
<section>
<p>
<img src="assets/Job-failed.png" alt="Job failed" />
</p>
</section>
</section>
<section data-transition="slide">
<h2>Deploy to Azure</h2>
<section>
<p>
<img
src="assets/Deployment-with-zip-file.png"
alt="Deployment with ZIP file"
/>
</p>
</section>
<section>
<p>
<img
src="assets/Deploy-with-ftp-credentials.png"
alt="Deploy with FTP credentials"
/>
</p>
</section>
<section>
<p>
<img src="assets/Deploy-using-git.png" alt="Deploy using Git" />
</p>
</section>
<section>
<p>
<img src="assets/Git-job-succeeded.png" alt="Git job succeeded" />
</p>
</section>
</section>
<section data-transition="slide">
<section>
<p>Any questions?</p>
</section>
</section>
</div>
</div>
<script src="js/reveal.min.js"></script>
<script>
Reveal.initialize({
slideNumber: true,
history: true,
width: 1920,
height: 1080,
transition: 'none',
dependencies: [
{ src: 'plugin/markdown/marked.js' },
{ src: 'plugin/markdown/markdown.js' },
{ src: 'plugin/zoom-js/zoom.js' },
{ src: 'plugin/highlight/highlight.js', async: true },
],
});
</script>
</body>
</html>