Fireship · @fireship

DevOps CI/CD Explained in 100 Seconds

Uploaded March 12, 2020 · Length 1:56

DevOps CI/CD Explained in 100 Seconds

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.

  1. 0:00

    DevOps a set of practices to build test

  2. 0:02

    and release your code in small frequent

  3. 0:04

    steps one of the core practices of

  4. 0:06

    DevOps is continuous integration which

  5. 0:08

    has developers commit their code to a

  6. 0:10

    shared repository often on a daily basis

  7. 0:13

    each commit triggers an automated

  8. 0:14

    workflow on a CI server that can notify

  9. 0:16

    developers of any issues integrating

  10. 0:18

    their changes when a repo evolves in

  11. 0:20

    small steps like this it prevents what's

  12. 0:22

    known as merge Towel imagine Mary you're

  13. 0:24

    back and developer builds a new API for

  14. 0:26

    your product

  15. 0:27

    shortly after Jane your front-end

  16. 0:29

    developer starts work on a new UI a few

  17. 0:31

    months later when it comes time to merge

  18. 0:33

    their features we find that they're

  19. 0:34

    completely incompatible the build fails

  20. 0:36

    and we now have to spend a bunch of time

  21. 0:38

    and money resolving these conflicts

  22. 0:40

    let's go ahead and build a continuous

  23. 0:41

    integration pipeline now to see how it

  24. 0:43

    prevents issues like this here on github

  25. 0:45

    I have a node.js web app in order to

  26. 0:47

    deliver this out to my customers I need

  27. 0:49

    to run three commands test build and

  28. 0:51

    deploy I can automate this entire

  29. 0:53

    process in the cloud by using a CI

  30. 0:55

    service like github actions first I

  31. 0:58

    create a workflow and then I tell it to

  32. 0:59

    run on every push to the master branch

  33. 1:01

    the event triggers a job that runs on a

  34. 1:04

    Linux container in the cloud and we tell

  35. 1:06

    the container what to do as a series of

  36. 1:07

    steps first it checks out the code in

  37. 1:10

    this github repo then sets up nodejs

  38. 1:11

    installs my dependencies and runs my

  39. 1:14

    tests

  40. 1:14

    build and deploy commands now anytime we

  41. 1:17

    commit code to the master branch in this

  42. 1:18

    repo it will run this workflow if any of

  43. 1:20

    the steps fail the bad software won't be

  44. 1:22

    delivered to our customers and will

  45. 1:24

    automatically know there's an issue that

  46. 1:25

    needs to be addressed at the end of the

  47. 1:27

    day CI CD offers two main benefits it

  48. 1:29

    helps you automate things that would

  49. 1:31

    otherwise have to be done manually by

  50. 1:32

    developers that will increase your

  51. 1:34

    velocity but it also detects small

  52. 1:35

    problems early before they can grow into

  53. 1:37

    major disasters and that results in

  54. 1:39

    higher code quality this has been C ICD

  55. 1:42

    or DevOps in 100 seconds make sure to

  56. 1:44

    hit the like button if you want to see

  57. 1:45

    more short videos like this and stay

  58. 1:47

    tuned tomorrow for a full dead loss

  59. 1:49

    project using github actions thanks for

  60. 1:51

    watching and I will see you in the next

  61. 1:53

    one