GitLab CI CD Tutorial for Beginners [Crash Course]
Vložit
- čas přidán 16. 05. 2024
- 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-cic...
► Original forked python demo app: github.com/benc-uk/python-dem...
► Docker in Docker Image: hub.docker.com/_/docker
► Docker in Docker Gitlab Docs: docs.gitlab.com/ee/ci/docker/...
► Install Python and Pip: www.python.org/downloads/
▬▬▬▬▬▬ Course Pre-Requisites ▬▬▬▬▬▬
💡 Docker - learn here: ► • Docker Tutorial for Be...
💡 YAML - learn here: ► • Yaml Tutorial | Learn ...
💡 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
🧡 Complete GitLab CI/CD Course with Kubernetes, Microservices, Multi-Stage & more: bit.ly/3MqmVlr
💙 Follow me on Instagram for behind-the-scenes content: 😊instagram.com/techworld_with_nana/
💚 Become a DevOps Engineer - 6-month program: bit.ly/3BQ6j1v
▬▬▬▬▬▬ Course Pre-Requisites ▬▬▬▬▬▬
💡 Docker - learn here: ► czcams.com/video/3c-iBn73dDE/video.html
💡 YAML - learn here: ► czcams.com/video/1uFVr15xDGg/video.html
💡 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 Docker
Amazing... Thank you!
This is awesome Nana.
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 CZcams content.
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.
Thank you, really happy to hear such feedback! :)
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 !
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!
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.
This is the first time I really enjoy a lesson from CZcams! 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.
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.
It's absurd how easy you can explain things, you are simply the best teacher
You are actually one of the best DevOps teacher that I have ever seen. I already used so many of your free videos in CZcams 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.
Nana, we Georgian Devs are proud of you as the symbol of the Georgian woman's power(especially from Samargalo
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 😍😍😍
Nana won't let you down, never doubt, no second thoughts when it comes to proper dedicated content.
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 !
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.
Brilliant crash course! I am already working on a CI/CD pipeline just by going through this video!
Thank you!!
Finally, I understood the CI/CD in GitLab. Thanks a lot for the complete real tutorial.
This is the most complete tutorial I have ever seen. Thank you so much Nana.
This is a perfect anatomy of CI/CD implementation! Thank you.
This is so awesome, your the best DevOps teacher out there. And I think we all appreciate you giving us free lessons like this and I hope you keep doing what you love for the free open source community ! :)
She explains things plainly and is a great reference.
Thank you Chandur, really glad to hear! 🤗
absolutely agree! Long live Ukraine and free Georgia!
i am really good at explaining somethings so how can i be like you? i will create an youtube channel but dont know how to visuliaze what you want to tell people@@TechWorldwithNana
Hats off to Nana and team for creating such awesome, valuable content! Too good!
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.
i have not seen a better teacher than you in recent years . you are tech savior for human kind. This is not my job, but still love learning the tech stuff . I thoroughly understood and enjoyed the tutorial
This was truly helpful as an intro into GitLab CI CD. Thank you Nana!
Your guide is the absolute best guide for me. It has just the right level of detail, tricks and overview of the technology. I'm a fan for life. Thanks!
That is one hell of a tutorial, thank you very much! You have a talent to explain it easy!
Awesome tutorial! Learning so much and I love the tempo and how well explained! Makes me less afraid of devops 😅
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
Thank you, so great to hear :)
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.
You are amazing Nana. Thank you so much! I find your videos incredibly helpful. You make the most complex concept easy to understand.
Fantastic! Great tutorial by an awesome instructor. Thanks, Nana! Love it! ❤
These are all precious materials I can say we will not find nowhere . So so happy and now I have basic idea and confident to move ahead. Thanks Nana as always.
I really appreciate the amount of effort you put into the presentation. Definitely, the best tutorial I could find on the topic
As always your explanations and teaching way is clear, simple and understandable! Thank you so much Nana!
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!
Your channel is spectacular!
The didactics used transforms something complicated into something very simple.
Grateful!
Amazing, clear and useful as usual ... great job done!! Thank you so much for keep on sharing your vast knowledge in DevOps
Контент - в кайф!!! 👍👍👍👍👍 Самый доходчивый пример!!! 👍👍👍👍👍 Не останавливайся и БОЛЬШОЕ спасибо за твой труд!!! 🙏🙏🙏🙏🙏
I fell in love with the description. Really perfect course. No boring, no wasting time. She is answering immediately all questions on my mind when watching.
This was a bit daunting yet simple to understand. Thank you Nana. God bless you mightily!
Generally I don't comment on CZcams videos, but this tutorial is ultimate on GitLab CI CD, hats off to you
You are literally the best DevOps teacher out there, I love your content!
I have never watched such an awesome tutorial till now, great explanation and covered all the possible errors that can come.
Really helpful Nana, Thanks
Excellent tutorial!! Thanks a lot for the time spent! You have gained a new subscriber because of this!!
@Nana, You are really gem at your presentation, especially a person with medium knowledge also can easily understand your classes. Keep rocking always. Thanks !
Exactly what we needed, to the point knowledge about the gitlab CI/CD pipelines. Thanks for the good content, and effort to make it.
What a clear and simple explanation ! Thank you.
So professional, thank you for calm and comprehensive explanation ❤
Your way of teaching is very open, simple and authentic. I learnt many things from your tutorials. Thank you so much for delivering very important concepts so easily, with open mind and heart with real intention of teaching others. 🙂🙏
Thanks so much Mubbarik, what an amazing feedback 😊
Amazing Content + an awesome teacher! Thank you so much, Nana 🤗🤩
Elaborately given the fundamental concepts for Gitlab, thank you! And plus the tone of her voice is amazing as a tutor. After watching a couple of different tutorials with a voice triggering my misophonia, this video record saved me 💚
JUST EXCELLENT! TOO GOOD Nana and team!
Spectacular class! Congratulations 🤩👏
one of the best precise videos on CI/CD on gitlab.
This was amazing! You deserve every ounce of success you are having. Respect!
Wow. ❤Thank you so much for this amazing GitLab CI/CD tutorial. You have described here each & every steps so clearly. Much appreciated for this detailed tutorial. 👍✌
Thanks Nana. Your tutorials are wonderful!!!
This is the first time I have watched any of your videos and I want to say great work, I have finally got round to fully watching this video and it really helped me understand pipelines. Keep up the good work.
If someone is having the error "TypeError: required field "lineno" missing from alias" you can change the pytest version in the file src/requirements.txt - From pytest==6.2.2 to pytest==6.2.5 for example.
Thanksman
Thanks for explaining things very simply and straightforwardly!
Thanks for your continuous support. It was a great lesson that anyone could understand.
This is amazing! Love it, great tutorial, thank you ❤
Thank you! :) now I feel very confident about Docker.
This video is incredibly helpful for understanding how to create a CI/CD pipeline. Nana, your presentation is amazing and straight to the point. Thank you so much for providing such valuable insights!
Now I can read and understand ci-cd files. Thank you Nana!
Thank you, this explained some very basic concepts that I was missing as I began working with gitlab.
Thank you very much for a really detailed and comprehensive tutorial.
thank you!
that's my first CI/CD.
it work
You are amaizing Nana! Thank you so much for this. It'll help in my project
I must say that you know a learner's mind very well. The next explanation from you is always the first question that comes in a learner's mind. This might sound a simple thing but a very very rare quality.
This tutorial was absolutely amazing, thank you!
No words are enough to thank you for this AMAZING content.
An excellent tuto! Thank you very much Nana for this great work, it helped me a lot to start with gitlab CI/CD
This is an excellent breakdown of the overall process. Thank you for providing this content!
I learned so much from this crash course. Thank you Nana.
This was a massively helpful introduction to GitLab cicd, thank you so much!
I wanted to express my sincere gratitude Nana🥰 for your GitLab CI/CD tutorial. It has been immensely helpful as I prepare for my final internship project in the coming month. Although I couldn't deploy due to the lack of a subscription, I want to assure you that understanding the process was the most important for me. May God bless you for sharing your knowledge.
Awesome; thanks so much for providing this tutorial.
Everytime you comes with the much needed skill-set which ppl r looking for...i know i've said this several time but i really appreciate and value ur work...it takes a courage and big heart to do this stuff for free...Huge thanks @TechworldwithNana...wish u a million subscribers soon
Hi Nana. Thanks for the wonderful session. Loved it. Appreciate your effort and I am fan of your sessions.
Awesome content. Keep up the good work. Thank you very much.
For those who might have import error when running make test... this maybe could help
add this in the requirements.txt pytest==6.2.5
Werkzeug==2.2.2
Genius man 👍
thanks bro
thank you! I'd just got stuck on this part, appreciate it
Very nice explanation of GitLab. I used a GitLab Server and implemented everything on AWS. I ran into some issues, but I eventually got everything to work.
Thank you for this free tutorial 😊
This was so good that I can't believe it! Amazing!
What a demo! Thanks a lot Nana!
Just in time. Thanks for your work!
A great Thank you to you. You helped me to understand the gitlab-ci's file structure and the CI/CD. Thank you very much again
I think it is one of the best tutorial about cicd, Simple but very good 😊thank you a lot!!!
Extremely helpful and easy to understand.
This video best tutorial about Gitlab CI/CD in CZcams.Thanks 👍🏻
brilliantly clear explanation - thanks..
Nana - Amazing detailed explanation...This is what I was searching from a long time. All In one,
Stop at minute 22:07 just to write this comment. You explained this topic very well. Very sequential and detailed. i should buy the full course
Excellent tutorial! Thanks for sharing!
Very informative and easy to follow. Now I can really create CI/CD pipelines on gitlab. Thank you!
YOU ARE GREAT NANA, THANKS A LOT
Excellent tutorial! Congratulations! I just learned a lot from this tutorial