GitLab CI CD Tutorial for Beginners [Crash Course]

1,177,006
0
Published 2022-06-09
Learn GitLab CI/CD by building a complete CICD pipeline for a python demo project | with Docker

🧡 GitLab Course with Kubernetes, Microservices, Multi-Stage: bit.ly/3MqmVlr
💚 Become a DevOps Engineer - 6-month program: bit.ly/3BQ6j1v

#gitlab #gitlabcicd #techworldwithnana


► This course is sponsored by Twingate 🙌🏼, a modern alternative to VPN
► If you want to try it, check out their special offer for my viewers by using the code "NANA": lp.twingate.com/NANA


▬▬▬▬▬▬ What you’ll learn in 1 Hour ✅ ▬▬▬▬▬▬
► What GitLab CI/CD is
► GitLab compared to other CI/CD platforms
► Overview of GitLab Architecture
► Build a full GitLab CI/CD pipeline for a python app that
- executes tests,
- builds a Docker image,
- pushes to a private Docker repository and
- deploys the app to a remote server on DigitalOcean
► Learn GitLab Basic Concepts on the way:
- Pipeline, Jobs,
- Stages
- GitLab Runners and Executors
- Variables (Variable and File Type)
- Docker in Docker


▬▬▬▬▬▬ R E F E R E N C E S 🔗▬▬▬▬▬▬
► Git repo we build the CI/CD pipeline for: gitlab.com/nanuchi/gitlab-cicd-crash-course
► Original forked python demo app: github.com/benc-uk/python-demoapp
► Docker in Docker Image: hub.docker.com/_/docker
► Docker in Docker Gitlab Docs: docs.gitlab.com/ee/ci/docker/using_docker_build.ht…
► Install Python and Pip: www.python.org/downloads/


▬▬▬▬▬▬ Course Pre-Requisites ▬▬▬▬▬▬
💡 Docker - learn here: ►    • Docker Tutorial for Beginners [FULL C...  
💡 YAML - learn here: ►    • Yaml Tutorial | Learn YAML in 18 mins  
💡 Basics of Git


▬▬▬▬▬▬ Pre-Requisites if you want to follow the demo ▬▬▬▬▬▬
⌨️ GitLab Account
⌨️ DockerHub Account - we push and pull docker image from Docker Hub (hub.docker.com/)
⌨️ If you want to start the app locally: Install Python3, Pip and make


▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬
00:00 - Intro and Course Overview
01:25 - What is GitLab CI/CD?
01:59 - What is CI/CD in simple words
03:11 - GitLab in comparison to other CI/CD platforms
04:28 - GitLab Architecture - How GitLab works
06:16 - Overview of the demo app (run locally)
12:47 - Pipeline Configuration File (.gitlab-ci.yml)
14:09 - Run Tests
26:27 - Build and Push Docker Image
27:43 - Variables for Login Credentials
32:33 - Write Pipeline Configuration
38:56 - Docker in Docker
43:23 - Execute Pipeline
44:20 - Define Stages
47:19 - Prepare Deployment Server
47:44 - Create Ubuntu server on DigitalOcean
54:44 - Deploy Application
1:06:22 - Validate Application Runs Successfully
1:07:30 - Delete server on DO
1:07:49 - Dive Deeper into GitLab CI/CD


▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
INSTAGRAM ► bit.ly/2F3LXYJ
TWITTER ► bit.ly/3i54PUB
LINKEDIN ► bit.ly/3hWOLVT
Facebook group ► bit.ly/32UVSZP

All Comments (21)
  • 🧡 Complete GitLab CI/CD Course with Kubernetes, Microservices, Multi-Stage & more: bit.ly/3MqmVlr 💙 Follow me on Instagram for behind-the-scenes content: 😊www.instagram.com/techworld_with_nana/ 💚 Become a DevOps Engineer - 6-month program: bit.ly/3BQ6j1v ▬▬▬▬▬▬ Course Pre-Requisites ▬▬▬▬▬▬ 💡 Docker - learn here: ► https://youtu.be/3c-iBn73dDE 💡 YAML - learn here: ► https://youtu.be/1uFVr15xDGg 💡 Basics of Git ▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬ 00:00 - Intro and Course Overview 01:25 - What is GitLab CI/CD? 01:59 - What is CI/CD in simple words 03:11 - GitLab in comparison to other CI/CD platforms 04:28 - GitLab Architecture - How GitLab works 06:16 - Overview of the demo app (run locally) 12:47 - Pipeline Configuration File (.gitlab-ci.yml) 14:09 - Run Tests 26:27 - Build and Push Docker Image 27:43 - Variables for Login Credentials 32:33 - Write Pipeline Configuration 38:56 - Docker in Docker 43:23 - Execute Pipeline 44:20 - Define Stages 47:19 - Prepare Deployment Server 47:44 - Create Ubuntu server on DigitalOcean 54:44 - Deploy Application 1:06:22 - Validate Application Runs Successfully 1:07:30 - Delete server on DO 1:07:49 - Dive Deeper into GitLab CI/CD ▬▬▬▬▬▬ What you’ll learn in 1 Hour ✅ ▬▬▬▬▬▬ ► What GitLab CI/CD is ► GitLab compared to other CI/CD platforms ► Overview of GitLab Architecture ► Build a full GitLab CI/CD pipeline for a python app that - executes tests, - builds a Docker image, - pushes to a private Docker repository and - deploys the app to a remote server on DigitalOcean ► Learn GitLab Basic Concepts on the way: - Pipeline, Jobs, - Stages - GitLab Runners and Executors - Variables (Variable and File Type) - Docker in
  • @user-lh6st6wo1g
    Seriously, Nana, this is absolutely incredible. This is how it's done. This is a crash course not just in CI/CD but in how to make S-tier useful Youtube content.
  • @arunrai80
    You not only know the material, but you are exceptionally great in structuring and explaining them concisely but in details, as a developer learning CI/CD pipelines I have no more words to express my gratitude! Thank you so much for your efforts.
  • Your tutorials are truly blessings for any s/w or devops engineers. Thank you so much ❤️
  • I'm amazed just how WELL EXPLAINED were all the concepts in this video! Amazing, thank you !
  • @mtaghadosi
    You are actually one of the best DevOps teacher that I have ever seen. I already used so many of your free videos in Youtube when I was in another country which I couldn't pay for your products. Now that I am working as a Senior DevOps Expert in a German based company I happily be able to use your premium materials as well. Regards.
  • @zeliwong
    This is the first time I really enjoy a lesson from Youtube! Very detailed explanation, in "human" words. Must of the times, I fall into lessons where the person explaining is very technical and for people like me, that is their first contact to any of those concepts, it can be terrifying. Thank you very much, I will deffinitely continue learning from you.
  • I'm very new to CI/CD but my project desperately needed it. I'm very thanksful for this course. No loud music, no annoying and flashy things. Just the informations i need to understand. Great job !
  • Hands down the best intro walkthrough on GitLab CI/CD there is. Simply brilliant.
  • I am impressed with level of simplicity yet straightforwardness in your explanations. Great job! Super fun & educative to watch your tutorials. Thank you.
  • Nana, Your videos will take my career as a data scientist to the next level. I have now a common language with my DevOps colleagues. Thank you for sharing your gifts with the world. I’m grateful and inspired.
  • @nbensa
    I have two decades of Linux/Bash over my shoulders, and I just discovered that you can mix pipe and conditional execution on the same line: `cmd1 && cmd2 | cmd3 && cmd4`. Everyday I learn something new. Thanks Nana!!! You're the best teacher in the world!
  • As an SQL DBA, I can confidently embark on DevOps learning with you at any time and begin applying the knowledge in practice. Your approach to learning is highly efficient. By focusing on teaching 20% of the most important material, you enable learners to comprehend 80% of the subject matter, truly exemplifying the 80/20 rule.
  • Totally appreciate the effort of sharing and love learning everything from you Nana. You made everything possible for all beginners. Best wishes to you and your family.
  • @fb6868
    Many thanks Nana for this great free video❤. There are a lot of videos available here, but I really like the way you mix demo and content. Furthermore you can explain perfectly these technologies 🤟I have learned a lot in this one hour. This will definitely help me in my daily business 😊 I very much appreciate this!
  • @uninconformemas
    It's absurd how easy you can explain things, you are simply the best teacher
  • Nana, you can't imagine how happy I felt when I found this tutorial You are amazing, every tutorial I watch from you makes me very excited to work in this field more and more Thank you so much for all what you are providing for us 😍😍😍
  • @FirstLast-fc9cu
    Nana I am thoroughly enjoying all your devops related videos and when I can afford to will do your bootcamp course. I love how clearly and simply you explain the tools and concepts.
  • @jondoe79
    Nana won't let you down, never doubt, no second thoughts when it comes to proper dedicated content.
  • @EpicKillstreak
    Awesome video, literally one of the best tutorials I've ever seen and I've been a developer for over 6 years. I appreciate all the visualisations and edge cases. Thanks a lot! : 3