@@ -3,30 +3,35 @@ marp: true
3
3
theme : custom-default
4
4
footer : ' @Chris_L_Ayers - https://chris-ayers.com'
5
5
---
6
+
6
7
<!-- _footer: 'https://github.com/codebytes/github-actions-demos' -->
7
8
8
9
# CI/CD with GitHub Actions
9
10
10
11
## Chris Ayers
12
+
11
13
![ bg right w:90%] ( ./img/bg.png )
12
14
13
15
---
14
16
15
17
![ bg left:40%] ( ./img/portrait.png )
16
18
17
19
## Chris Ayers
20
+
18
21
### Senior Customer Engineer<br >Microsoft
19
22
20
- <i class =" fa-brands fa-twitter " ></i > Twitter: @Chris \_ L \_ Ayers
23
+ <i class =" fa-brands fa-twitter " ></i > Twitter: @Chris_L_Ayers
21
24
<i class =" fa-brands fa-mastodon " ></i > Mastodon: @Chrisayers @hachyderm.io
22
25
<i class =" fa-brands fa-linkedin " ></i > LinkedIn: - [ chris\- l\- ayers] ( https://linkedin.com/in/chris-l-ayers/ )
23
26
<i class =" fa fa-window-maximize " ></i > Blog: [ https://chris-ayers\.com/ ] ( https://chris-ayers.com/ )
24
27
<i class =" fa-brands fa-github " ></i > GitHub: [ Codebytes] ( https://github.com/codebytes )
25
28
26
29
---
30
+
27
31
![ bg left fit] ( ./img/bg.png )
28
32
29
33
# Agenda
34
+
30
35
- YAML
31
36
- CI / CD
32
37
- Actions Overview
@@ -38,6 +43,7 @@ footer: '@Chris_L_Ayers - https://chris-ayers.com'
38
43
<div >
39
44
40
45
# YAML
46
+
41
47
## ** Yet Another Markup Language**
42
48
43
49
GitHub uses YAML for workflows
@@ -74,6 +80,7 @@ Demo: [Online Parser](https://yaml-online-parser.appspot.com/)
74
80
---
75
81
76
82
![ bg right w:90%] ( ./img/github-workflows.png )
83
+
77
84
# Actions Overview
78
85
79
86
- Live in the ` .github/workflows ` folder
@@ -83,6 +90,7 @@ Demo: [Online Parser](https://yaml-online-parser.appspot.com/)
83
90
---
84
91
85
92
# Events that trigger workflows
93
+
86
94
[ https://docs.github.com/actions/using-workflows/events-that-trigger-workflows ] ( https://docs.github.com/actions/using-workflows/events-that-trigger-workflows )
87
95
88
96
<div class =" columns " >
@@ -121,6 +129,7 @@ Demo: [Online Parser](https://yaml-online-parser.appspot.com/)
121
129
![ bg right fit] ( ./img/event-job.drawio.png )
122
130
123
131
# Workflows
132
+
124
133
- [ Events] ( https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows ) trigger workflows
125
134
- Workflows contain jobs
126
135
- Jobs contain steps
@@ -129,7 +138,9 @@ Demo: [Online Parser](https://yaml-online-parser.appspot.com/)
129
138
---
130
139
131
140
![ bg right fit] ( ./img/job-runner.drawio.png )
141
+
132
142
# Jobs
143
+
133
144
- Workflows can contain multiple jobs
134
145
- Jobs run in parallel by default
135
146
- Each job runs on a [ Runner] ( https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners )
@@ -158,23 +169,26 @@ Demo: [Online Parser](https://yaml-online-parser.appspot.com/)
158
169
---
159
170
160
171
![ bg right fit] ( ./img/bg.png )
172
+
161
173
# DEMOS
162
174
163
175
---
164
176
165
177
# Workshop
166
178
167
179
## [ https://github.com/actions-workshop/actions-workshop ] ( https://github.com/actions-workshop/actions-workshop )
180
+
168
181
### [ https://tinyurl.com/ghactions ] ( https://tinyurl.com/ghactions )
169
182
170
183
![ bg right fit] ( img/qr-actions-workshop.png )
171
184
172
185
---
173
186
174
187
# ACT
188
+
175
189
## Run Actions Locally
176
190
177
- <i class =" fa-brands fa-github " ></i > [ nektos/act] ( https://github.com/nektos/act )
191
+ <i class =" fa-brands fa-github " ></i > [ nektos/act] ( https://github.com/nektos/act )
178
192
179
193
![ bg right:50% 95%] ( ./img/act-quickstart-2.gif )
180
194
@@ -186,7 +200,6 @@ Demo: [Online Parser](https://yaml-online-parser.appspot.com/)
186
200
187
201
# Security
188
202
189
-
190
203
<div class =" columns " >
191
204
<div >
192
205
@@ -225,15 +238,16 @@ Demo: [Online Parser](https://yaml-online-parser.appspot.com/)
225
238
<br >
226
239
227
240
` .github/dependabot.yml `
241
+
228
242
``` yaml
229
243
version : 2
230
244
updates :
231
245
# See documentation for possible values
232
- - package-ecosystem : " github-actions"
246
+ - package-ecosystem : ' github-actions'
233
247
# Location of package manifests
234
- directory : " / "
248
+ directory : ' / '
235
249
schedule :
236
- interval : " weekly"
250
+ interval : ' weekly'
237
251
` ` `
238
252
239
253
</div>
@@ -242,6 +256,7 @@ updates:
242
256
---
243
257
244
258

259
+
245
260
# DEMOS
246
261
247
262
---
@@ -269,7 +284,7 @@ updates:
269
284
270
285
## Follow Chris Ayers
271
286
272
- <i class="fa-brands fa-twitter"></i> Twitter: @Chris \_ L \_ Ayers
287
+ <i class="fa-brands fa-twitter"></i> Twitter: @Chris_L_Ayers
273
288
<i class="fa-brands fa-mastodon"></i> Mastodon: @[email protected]
274
289
<i class="fa-brands fa-linkedin"></i> LinkedIn: - [chris\- l\- ayers](https://linkedin.com/in/chris-l-ayers/)
275
290
<i class="fa fa-window-maximize"></i> Blog: [https://chris-ayers\. com/](https://chris-ayers.com/)
0 commit comments