Fireship · @fireship
DevOps CI/CD Explained in 100 Seconds
Uploaded March 12, 2020 · Length 1:56
Summary
DevOps CI/CD explained in 100 seconds, automating code testing and deployment.
- devops
- ci/cd
- continuous integration
- github actions
- automated testing
- deployment pipeline
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
DevOps a set of practices to build test
- 0:02
and release your code in small frequent
- 0:04
steps one of the core practices of
- 0:06
DevOps is continuous integration which
- 0:08
has developers commit their code to a
- 0:10
shared repository often on a daily basis
- 0:13
each commit triggers an automated
- 0:14
workflow on a CI server that can notify
- 0:16
developers of any issues integrating
- 0:18
their changes when a repo evolves in
- 0:20
small steps like this it prevents what's
- 0:22
known as merge Towel imagine Mary you're
- 0:24
back and developer builds a new API for
- 0:26
your product
- 0:27
shortly after Jane your front-end
- 0:29
developer starts work on a new UI a few
- 0:31
months later when it comes time to merge
- 0:33
their features we find that they're
- 0:34
completely incompatible the build fails
- 0:36
and we now have to spend a bunch of time
- 0:38
and money resolving these conflicts
- 0:40
let's go ahead and build a continuous
- 0:41
integration pipeline now to see how it
- 0:43
prevents issues like this here on github
- 0:45
I have a node.js web app in order to
- 0:47
deliver this out to my customers I need
- 0:49
to run three commands test build and
- 0:51
deploy I can automate this entire
- 0:53
process in the cloud by using a CI
- 0:55
service like github actions first I
- 0:58
create a workflow and then I tell it to
- 0:59
run on every push to the master branch
- 1:01
the event triggers a job that runs on a
- 1:04
Linux container in the cloud and we tell
- 1:06
the container what to do as a series of
- 1:07
steps first it checks out the code in
- 1:10
this github repo then sets up nodejs
- 1:11
installs my dependencies and runs my
- 1:14
tests
- 1:14
build and deploy commands now anytime we
- 1:17
commit code to the master branch in this
- 1:18
repo it will run this workflow if any of
- 1:20
the steps fail the bad software won't be
- 1:22
delivered to our customers and will
- 1:24
automatically know there's an issue that
- 1:25
needs to be addressed at the end of the
- 1:27
day CI CD offers two main benefits it
- 1:29
helps you automate things that would
- 1:31
otherwise have to be done manually by
- 1:32
developers that will increase your
- 1:34
velocity but it also detects small
- 1:35
problems early before they can grow into
- 1:37
major disasters and that results in
- 1:39
higher code quality this has been C ICD
- 1:42
or DevOps in 100 seconds make sure to
- 1:44
hit the like button if you want to see
- 1:45
more short videos like this and stay
- 1:47
tuned tomorrow for a full dead loss
- 1:49
project using github actions thanks for
- 1:51
watching and I will see you in the next
- 1:53
one


