-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
418 lines (400 loc) · 20.2 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
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
<!doctype html>
<html lang="en" prefix="og: http://ogp.me/ns#">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>
Gitlab CI/CD
</title>
<meta name="description" content="WebSlides is the easiest way to make HTML presentations, portfolios, and landings. Just essential features." />
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,700,700i%7CMaitree:200,300,400,600,700&subset=latin-ext" rel="stylesheet">
<!-- CSS WebSlides -->
<link rel="stylesheet" type='text/css' media='all' href="static/css/webslides.css">
<!-- Optional - CSS SVG Icons (Font Awesome) -->
<link rel="stylesheet" type='text/css' media='all' href="static/css/svg-icons.css">
<!-- SOCIAL CARDS (ADD YOUR INFO) -->
<!-- FACEBOOK -->
<meta property="og:url" content="http://your-url.com/"> <!-- YOUR URL -->
<meta property="og:type" content="article">
<meta property="og:title" content="WebSlides — Making HTML Presentations Easy"> <!-- EDIT -->
<meta property="og:description" content="WebSlides is about telling stories beautifully. Just the essential features. Good karma."> <!-- EDIT -->
<meta property="og:updated_time" content="2017-01-04T17:20:50"> <!-- EDIT -->
<meta property="og:image" content="static/images/share-webslides.jpg"> <!-- EDIT -->
<!-- TWITTER -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@webslides"> <!-- EDIT -->
<meta name="twitter:creator" content="@jlantunez"> <!-- EDIT -->
<meta name="twitter:title" content="WebSlides — Making HTML Presentations Easy"> <!-- EDIT -->
<meta name="twitter:description" content="WebSlides is about good karma. Just essential features. 120+ free slides ready to use."> <!-- EDIT -->
<meta name="twitter:image" content="static/images/share-webslides.jpg"> <!-- EDIT -->
<!-- FAVICONS -->
<link rel="shortcut icon" sizes="16x16" href="static/images/favicons/favicon.png">
<link rel="shortcut icon" sizes="32x32" href="static/images/favicons/favicon-32.png">
<link rel="apple-touch-icon icon" sizes="76x76" href="static/images/favicons/favicon-76.png">
<link rel="apple-touch-icon icon" sizes="120x120" href="static/images/favicons/favicon-120.png">
<link rel="apple-touch-icon icon" sizes="152x152" href="static/images/favicons/favicon-152.png">
<link rel="apple-touch-icon icon" sizes="180x180" href="static/images/favicons/favicon-180.png">
<link rel="apple-touch-icon icon" sizes="192x192" href="static/images/favicons/favicon-192.png">
<!-- Android -->
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#333333">
<style>
.gitlab-text {
color: rgb(212, 138, 0) !important;
}
.github-text {
color: darkblue !important;
}
.gittea-text {
color: lightgreen !important;
}
.paper-text {
text-align: justify;
}
</style>
</head>
<body>
<header role="banner">
<nav role="navigation">
<p class="logo">
<a href="https://amirhossein-presentations.github.io/gitlab-ci-cd" style="color: rgb(212, 138, 0);" title="Github">
Gitlab CI/CD
</a>
</p>
<p style="float: right; font-size: 1.6em;">
<a rel="external" href="https://github.com/amirhnajafiz-presentations/gitlab-ci-cd">
<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" fill="currentColor" class="bi bi-github" viewBox="0 0 16 16">
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"/>
</svg>
</a>
</p>
</nav>
</header>
<main role="main">
<article id="webslides" class="vertical">
<section>
<span class="background" style="background-image:url('./static/images/gitlab-ci.png');"></span>
<div class="wrap aligncenter">
<h1><strong>
Gitlab CI/CD Presentation
</strong></h1>
<p class="text-intro" style="margin-block-start: 50px; margin-block-end: 50px;">
Make changes in your application!<br />
Leave out all the rest :D<br />
<span style="font-size: 0.7em;">
Presentation by Amirhossein Najafizadeh, Aref Tabatabaie, and Tina Towhidkhah
</span>
</p>
<p>
<a href="https://webslides.tv/webslides-latest.zip" class="button zoomIn" title="Download WebSlides for free">
<svg class="fa-cloud-download">
<use xlink:href="#fa-cloud-download"></use>
</svg>
Download Slides
</a>
</p>
</div>
</section>
<section>
<div class="wrap size-50">
<h2 style="text-align: center;"><strong>Presentation Topics</strong></h2>
<ul style="text-align: start; margin: 25px 120px;">
<li>
Why Gitlab?
</li>
<li>
Continuous Integration and Continuous Delivery!
</li>
<li>
What is Gitlab Pipeline?
</li>
<li>
Execute jobs on Gitlab Runner.
</li>
<li>
How to build a CI?
</li>
<li>
Live Demo (not so fresh)
</li>
<li>
What's Next?
</li>
</ul>
</div>
</section>
<section>
<div class="wrap size-75">
<h3 style="margin-block-end: 25px;">
Why Gitlab?
</h3>
<p class="paper-text">
<span class="gitlab-text">GitLab</span> is an open source code repository and collaborative software development platform.
<span class="gitlab-text">GitLab</span> is free for individuals.
<span class="gitlab-text">GitLab</span> offers a location for online code storage and capabilities for issue tracking and CI/CD.
Since it's open source, it's popular between big companies, even better than other code repositories.
Very easy to set up. User-friendly UI and tools. Allows an unlimited number of free private repositories. Can integrate many APIs and third-party services.
</p>
<p class="zoomIn" style="text-align: center;">
<img src="./static/images/architecture.webp" width="500" />
</p>
</div>
</section>
<section>
<div class="wrap size-75">
<h4>
Other code repositories?
</h4>
<p style="margin-block-start: 50px;">
<span class="github-text">GitHub</span>, <span class="gittea-text">GitTea</span>, <span class="gitlab-text">Subversion</span>, ...<br />
There are a lot of code repositories, but the most useds are GitHub and Gitlab.
</p>
<p class="paper-text">
The major difference between GitHub and GitLab is the platform each philosophy presents.
GitHub has higher availability and is more focused on infrastructure performance, while GitLab is more
focused on offering a features-based system with a centralized, integrated platform for web developers.
But they both provide a tool which helps developer team to change their application sufficiently.
</p>
</div>
</section>
<section>
<div class="wrap size-75">
<h3>
Continuous Integration and Continuous Delivery!
</h3>
<p class="paper-text" style="margin-block-start: 50px;">
<span class="gitlab-text">Continuous Integration (CI)</span> is the practice of merging any new code changes to the main branch.
<span class="gitlab-text">Continuous Delivery (CD)</span> automates manual tasks that are required to build and test software (for example, by automating tests).
</p>
<p class="zoomIn" style="text-align: center;">
<img src="./static/images/cicd.png" width="1000" />
</p>
</div>
</section>
<section>
<div class="wrap size-75">
<h4>
Benefits?
</h4>
<p class="paper-text" style="margin-block-start: 50px;">
Remember Agile slides!?<br />
Continuous integration/continuous delivery, more commonly known as CI/CD, promises to help software companies
become more agile by delivering software faster and more reliably. The goal of CI/CD is to reduce software
development and delivery timelines from months or weeks down to days or even hours.
</p>
<div class="zoomIn" style="text-align: center;">
<img src="./static/images/ci.png" width="538" />
<img src="./static/images/cd.png" width="500" />
</div>
</div>
</section>
<section>
<div class="wrap size-75">
<h3>
What stages do we have?
</h3>
<div style="margin-block-start: 50px;">
<ul>
<li>
Lint: Check if the code is clean or not. Based on clean-coding rules.
</li>
<li>
Test: Execute unit tests to check the system components.
</li>
<li>
Compile: Compile the application into an executable file.
</li>
<li>
Build: Building our executable file inside an docker image for example.
</li>
<li>
Release: Release a new version of our application.
</li>
<li>
Deploy: Make a deployments based on the latest release.
</li>
</ul>
</div>
</div>
</section>
<section>
<div class="wrap size-75">
<h4>
What is Gitlab Pipeline?
</h4>
<p class="paper-text" style="margin-block-start: 50px;">
In order to do CI/CD stages, <span class="gitlab-text">Gilab</span> provides something called <strong>pipeline</strong>.
With pipeline as code, teams can configure builds, tests, and deployment in code that is trackable and
stored in a centralized source repository. Teams can use a declarative YAML approach or a vendor-specific programming language,
such as Jenkins and Groovy, but the premise remains the same.
Each stage is perfomed by a job which will be handled in Gitlab runner. We will get into that later.
</p>
<p class="zoomIn" style="text-align: center;">
<img src="./static/images/pipeline.png" width="600" />
</p>
</div>
</section>
<section>
<div class="wrap size-75">
<h3 style="margin-block-end: 25px;">
Execute jobs on Gitlab Runner.
</h3>
<p class="paper-text" style="margin-block-start: 50px;">
Each stage, creates a new job in Gitlab.
Gitlab Runner is an application that works with GitLab CI/CD to run the job in a pipeline.
It is open-source and written in Go Language.
It can also be run inside the Docker container or it can be deployed into a Kubernetes cluster.
The GitLab Runner receives instructions from the GitLab server in regards to which jobs to run.
Each runner must be registered with the GitLab server. Runner Executor, each Runner will define at
least one executor. An executor is essentially the environment where the job will be executed.
</p>
</div>
</section>
<section>
<div class="wrap size-75">
<h4>
Why Runner?
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-airplane" viewBox="0 0 16 16">
<path d="M6.428 1.151C6.708.591 7.213 0 8 0s1.292.592 1.572 1.151C9.861 1.73 10 2.431 10 3v3.691l5.17 2.585a1.5 1.5 0 0 1 .83 1.342V12a.5.5 0 0 1-.582.493l-5.507-.918-.375 2.253 1.318 1.318A.5.5 0 0 1 10.5 16h-5a.5.5 0 0 1-.354-.854l1.319-1.318-.376-2.253-5.507.918A.5.5 0 0 1 0 12v-1.382a1.5 1.5 0 0 1 .83-1.342L6 6.691V3c0-.568.14-1.271.428-1.849Zm.894.448C7.111 2.02 7 2.569 7 3v4a.5.5 0 0 1-.276.447l-5.448 2.724a.5.5 0 0 0-.276.447v.792l5.418-.903a.5.5 0 0 1 .575.41l.5 3a.5.5 0 0 1-.14.437L6.708 15h2.586l-.647-.646a.5.5 0 0 1-.14-.436l.5-3a.5.5 0 0 1 .576-.411L15 11.41v-.792a.5.5 0 0 0-.276-.447L9.276 7.447A.5.5 0 0 1 9 7V3c0-.432-.11-.979-.322-1.401C8.458 1.159 8.213 1 8 1c-.213 0-.458.158-.678.599Z"/>
</svg>
</h4>
<p class="paper-text" style="margin-block-start: 50px;">
GitLab runner is a build instance which is used to run the jobs over multiple machines and
send the results to GitLab and which can be placed on separate users, servers, and local machine.
You can register the runner as shared or specific after installing it.
</p>
<div class="zoomIn" style="text-align: center;">
<img src="./static/images/runner.jpeg" width="500" />
</div>
</div>
</section>
<section>
<div class="wrap size-75">
<h3>
How to build a CI?
</h3>
<p class="paper-text" style="margin-block-start: 50px;">
Before you start, make sure you have:<br />
<ul>
<li>
A project in GitLab that you would like to use CI/CD for.
</li>
<li>
The Maintainer or Owner role for the project.
</li>
</ul>
</p>
<p class="paper-text">
In GitLab, runners are agents that run your CI/CD jobs. To view available runners <strong>Go to Settings > CI/CD and expand Runners</strong>.
Now create a <strong>.gitlab-ci.yml </strong>file. It is a YAML file where you specify instructions for GitLab CI/CD. In this file, you define
the structure and order of jobs that the runner should execute, and the decisions the runner should make when specific conditions are encountered.
</p>
</div>
</section>
<section>
<div class="wrap size-75">
<h4 style="margin-block-end: 30px;">
Example
</h4>
<pre class="zoomIn"><code>build-job:
stage: build
script:
- echo "Hello, $GITLAB_USER_LOGIN!"
test-job1:
stage: test
script:
- echo "This job tests something"
deploy-prod:
stage: deploy
script:
- echo "This job deploys something from the $CI_COMMIT_BRANCH branch."
environment: production</code></pre>
</div>
</section>
<section>
<div class="wrap size-75">
<h3 style="margin-block-end: 25px;">
Live Demo (not so fresh)
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-camera-video" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M0 5a2 2 0 0 1 2-2h7.5a2 2 0 0 1 1.983 1.738l3.11-1.382A1 1 0 0 1 16 4.269v7.462a1 1 0 0 1-1.406.913l-3.111-1.382A2 2 0 0 1 9.5 13H2a2 2 0 0 1-2-2V5zm11.5 5.175 3.5 1.556V4.269l-3.5 1.556v4.35zM2 4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h7.5a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H2z"/>
</svg>
</h3>
<div style="text-align: center;">
<video width="1000" height="400" controls>
<source src="video.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
</section>
<section>
<div class="wrap size-75">
<h3>
What's Next?
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrows-fullscreen" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M5.828 10.172a.5.5 0 0 0-.707 0l-4.096 4.096V11.5a.5.5 0 0 0-1 0v3.975a.5.5 0 0 0 .5.5H4.5a.5.5 0 0 0 0-1H1.732l4.096-4.096a.5.5 0 0 0 0-.707zm4.344 0a.5.5 0 0 1 .707 0l4.096 4.096V11.5a.5.5 0 1 1 1 0v3.975a.5.5 0 0 1-.5.5H11.5a.5.5 0 0 1 0-1h2.768l-4.096-4.096a.5.5 0 0 1 0-.707zm0-4.344a.5.5 0 0 0 .707 0l4.096-4.096V4.5a.5.5 0 1 0 1 0V.525a.5.5 0 0 0-.5-.5H11.5a.5.5 0 0 0 0 1h2.768l-4.096 4.096a.5.5 0 0 0 0 .707zm-4.344 0a.5.5 0 0 1-.707 0L1.025 1.732V4.5a.5.5 0 0 1-1 0V.525a.5.5 0 0 1 .5-.5H4.5a.5.5 0 0 1 0 1H1.732l4.096 4.096a.5.5 0 0 1 0 .707z"/>
</svg>
</h3>
<p class="paper-text" style="margin-block-start: 50px;">
Now that we have a pipeline, we can use other tools in order to make the deployment.
We can use Image Registery (like Docker). We can use Kubernetes Helm Charts. We can use
Jenkins. We can use Flask or ArgoCD to change the deployment environment to update the versions.
</p>
</div>
</section>
<section>
<div class="wrap size-50">
<h3>
Resources
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-book" viewBox="0 0 16 16">
<path d="M1 2.828c.885-.37 2.154-.769 3.388-.893 1.33-.134 2.458.063 3.112.752v9.746c-.935-.53-2.12-.603-3.213-.493-1.18.12-2.37.461-3.287.811V2.828zm7.5-.141c.654-.689 1.782-.886 3.112-.752 1.234.124 2.503.523 3.388.893v9.923c-.918-.35-2.107-.692-3.287-.81-1.094-.111-2.278-.039-3.213.492V2.687zM8 1.783C7.015.936 5.587.81 4.287.94c-1.514.153-3.042.672-3.994 1.105A.5.5 0 0 0 0 2.5v11a.5.5 0 0 0 .707.455c.882-.4 2.303-.881 3.68-1.02 1.409-.142 2.59.087 3.223.877a.5.5 0 0 0 .78 0c.633-.79 1.814-1.019 3.222-.877 1.378.139 2.8.62 3.681 1.02A.5.5 0 0 0 16 13.5v-11a.5.5 0 0 0-.293-.455c-.952-.433-2.48-.952-3.994-1.105C10.413.809 8.985.936 8 1.783z"/>
</svg>
</h3>
<ul style="margin-block-start: 50px;">
<li>
<a href="https://docs.gitlab.com/ee/ci/">
docs.gitlab.com/ci
</a>
</li>
<li>
<a href="https://docs.gitlab.com/runner/">
docs.gitlab.com/runner
</a>
</li>
<li>
<a href="https://docs.gitlab.com/ee/ci/pipelines/">
docs.gitlab.com/ci/pipeline
</a>
</li>
<li>
<a href="https://about.gitlab.com/blog/2019/07/12/guide-to-ci-cd-pipelines/">
about.gitlab.com/blog/2019/07/12
</a>
</li>
<li>
<a href="https://docs.gitlab.com/ee/ci/yaml/gitlab_ci_yaml.html">
docs.gitlab.com/ci/yaml
</a>
</li>
</ul>
</div>
</section>
<section>
<span class="background" style="background-image:url('./static/images/gitlab-ci.png');"></span>
<div class="wrap size-75">
<h2>
Thank you all.
</h2>
</div>
</section>
</article>
</main>
<script src="static/js/webslides.js"></script>
<script>
window.ws = new WebSlides();
</script>
<!-- OPTIONAL - svg-icons.js (fontastic.me - Font Awesome as svg icons) -->
<script defer src="static/js/svg-icons.js"></script>
</body>
</html>