GitLab Beginner Tutorial 7 | GitLab CI/CD Getting Started


all FREE Courses –
Today we will learn
1. What is GitLab CI/CD
2. Create .gitlab-ci.yml
3. Run CI/CD pipeline

GitLab CI is an open source CI service included with GitLab
Since ver 8.0
GitLab CI is an open source Continuous Integration service included with GitLab
Only project maintainers & Admin can access the Settings

Step 1: Add .gitlab-ci.yml in the root folder of your project/repo

– GitLab CI/CD pipeline are configured using YAML file called .gitlab-ci.yml in each project
– .gitlab-ci.yml file defines the structure and order of the pipeline & determines

Mac – textEdit, textWrangler
Windows – Notepad, notepad++

– ci
– echo Hello World

Step 2: Commit and push file to gitlab repo

Step 3: Create GitLab runner for the project
Video –

Step 4: Start the runner

Step 5: Make any change in the project > commit > push


GitHub –
Udemy –
Training by Raghav at your venue –
Training schedule –
———— UI TESTING ————
Selenium Beginners –
Selenium Java Framework from Scratch –
Selenium Python –
Selenium Tips –
Selenium Builder –
Katalon Studio –
Robot Framework with RIDE-
Robot Framework with Eclipse –
Protractor –

———— API TESTING ————
Web Services (API) –
SoapUI –
Postman –
General –
Katalon Studio API Testing –

Appium –
Mobile Playlist –

———— CI | CD | DEVOPS ————
Jenkins Beginner –
Jenkins Tips & Trick –
Docker –

Git & GitHub –

JMeter Beginner –
JMeter Intermediate –
JMeter Advanced –
JMeter Tips & Tricks –
Performance Testing –

Java Beginners –
Java Tips & Tricks –

———— IDE ————
Visual Studio Code –

———— MAVEN ————
Maven –

———— OTHERS ————
Misc –
Tools & Tips –
QnA Friday-
Sunday Special –

Ask Raghav –
Interviews –
All Playlists –

Website –
LifeCharger –
Udemy Courses –
Facebook –
Twitter –
Youtube –
Instagram –

You can support my mission for education by sharing this knowledge and helping as many people as you can

Never Stop Learning


    • blank
      May 06, 2022 04:00 am Reply

      Please explain one OS at a time

    • blank
      thomas selwyn
      May 06, 2022 04:00 am Reply

      Does GITLAB started validating user account by asking CC details ? is it true

    • blank
      Prajkta Deshpande
      May 06, 2022 04:00 am Reply


      Thank you so much for the information you have shared about GITLab. I am new to GITLab and learning so much from your videos. It would be really helpful if you can provide information about
      1- creating merge requests
      2- solving merge conflicts.
      3- Hosting html, css code on GItLab
      4- Stashing the changes
      5- basic git-bash commands

    • blank
      Amanuel Tesfu
      May 06, 2022 04:00 am Reply

      Hey Ragav, I am getting this error:
      Pipeline failing? To keep GitLab spam and abuse free we ask that you verify your identity.
      Until then, shared runners will be unavailable. use your own runners.
      Validate your account or use your own runners,

      Is it because I am using GitLab Trial???

    • blank
      Kiran K
      May 06, 2022 04:00 am Reply

      This session makes my job easy as We are using gitlab ci in the current environment….Thank you so much.

    • blank
      k subrahmanyam
      May 06, 2022 04:00 am Reply

      finally done as you said in ur videos ,can u show how to dockerize to get artifats

    • blank
      Core Dreams Innovations
      May 06, 2022 04:00 am Reply

      GitLab-Runner: There has been a runner system failure, Job failed (system failure), prepare the environment: failed to start the process, exec: “pwsh”

    • blank
      Vishnuja Sivadas
      May 06, 2022 04:00 am Reply

      Great Videos. Thank you so much for this.

    • blank
      vishal sharma
      May 06, 2022 04:00 am Reply

      Great sir❤️

    • blank
      k subrahmanyam
      May 06, 2022 04:00 am Reply

      In your video's volume is very low.

    • blank
      snow canace
      May 06, 2022 04:00 am Reply

      Hi Hi Raghav, awesome video. I follow up your step one by one, but all were failed in Pipelines. And return below message, did you met the same issue.

      User validation required

      To use free CI/CD minutes on shared runners, you’ll need to validate your account with a credit card. If you prefer not to provide one, you can run pipelines by bringing your own runners and disabling shared runners for your project. This is required to discourage and reduce abuse on GitLab infrastructure. GitLab will not charge your card, it will only be used for validation

    • blank
      funny animal world
      May 06, 2022 04:00 am Reply

      20:55 it says failed on both for me even though i have files pushed in my test repo. i dont really understand why all this is necesary 😀

    • blank
      nataraju gokeda
      May 06, 2022 04:00 am Reply

      Hi Raghav…nice video at end of video…I am expecting output of job as latest commit….but out put is hello world….from yml script….what is use of pushing new text file there

    • blank
      Sandeep Gongiti
      May 06, 2022 04:00 am Reply

      Hi Raghav, Can you Please do a Video on Multi project Pipeline and Multi Branch Pipeline In Gitlab?

    • blank
      Amit Pawar
      May 06, 2022 04:00 am Reply

      Nice video Sir.. It helps a lot… Keep up the great work…

    • blank
      Paresh Marathe
      May 06, 2022 04:00 am Reply

      Hello Raghav, Thanks for this wonderful series. I have followed each step my yml file also validated but still I am getting error as Included file `.gitlab-ci.yml` does not have valid YAML syntax!. I have also installed the runner with proper tags. I know its a silly doubt but hope you can help me here

    • blank
      Sandeep Gongiti
      May 06, 2022 04:00 am Reply

      Hi Raghav, got an requirement that i have to Perform CI/CD to Aws from gitlab without Uploading our Server Private key in gitlab CI/cd Variables … Can you please do a video on this

    • blank
      Sutesh Dwivedi
      May 06, 2022 04:00 am Reply

      While creating job it gives me pipeline failing and gives an error of shared runner will be unavailable until you validate your account with credit card or use your own runner

    • blank
      May 06, 2022 04:00 am Reply

      Excellent set of videos on GitLab 👍🏽 no fluff, no marketing and to the point. just right for all techies !

    • blank
      Santhi Nair
      May 06, 2022 04:00 am Reply

      Could you tell us the software you use for screen capture, zoom in & out and highlighting.

    • blank
      Santiljano Malaj
      May 06, 2022 04:00 am Reply

      Continue with the hard work very simple explanation and resourcefulness.Wish you the best

    • blank
      Marantis Games
      May 06, 2022 04:00 am Reply

      Very nice tutorial! All 7 videos. Thank you very much!👋🤓

    • blank
      May 06, 2022 04:00 am Reply

      Excellent tutorial for beginners I'm in a better state of knowledge than I was 2 days ago thanks so much

    • blank
      May 06, 2022 04:00 am Reply

      This helped me so much, I'm studying Computer Science and this is one of our tasks now. At first it looked complex and unpleasent but you described it very well, thank you!

    • blank
      Vibhor Tripathi
      May 06, 2022 04:00 am Reply

      Very Helpful Tutorial, Raghav!

      Just want to know how to add a different instruction under the script in the .yml file. I specifically want to run a .bat file (in place of echo Hello World). Thanks again.

    • blank
      Venkataramana Madugula
      May 06, 2022 04:00 am Reply

      Wonderful introduction series of videos.

    • blank
      May 06, 2022 04:00 am Reply

      great series of tutorials!!!. Hats off to you!! .. I have learnt devops tools jenkins and gitlab using you tutorials..very very basic , step by step and easy to follow and understand . Can you pls make a video on how these tools are used in an enterprise setup. It may not be a hands on tutorial , but just to see different stages of the CI/CD pipeline and how its don in actual exterprise setup..Thank u so much for your effort!!!!

    • blank
      Don Dang
      May 06, 2022 04:00 am Reply

      I've watched all of the video in this playlist. These video are easy to follow and had increased my understanding of GitLab CI/CD process. Thanks, Raghav…:) May I suggest you include the CI/CD DevOps graph to illustrate what video #7 had accomplished. My understanding is we just completed code and build which is part of the Continuous Integration. Please continue creating more video to include the Continuous Delivery and Continuous Deployment. In addition, can you please include video on creating Docker image and then include it in the .gitlab-ci.yml.

    • blank
      yogesh k
      May 06, 2022 04:00 am Reply

      my pipeline job failed saying user not verified. May i know the resolution

    • blank
      Chandu Bharath
      May 06, 2022 04:00 am Reply

      First of all thank you so much..!!

      Can a yml have multiple jobs,tags

      Once job triggered, changes in yml are pushed. Where exactly are these changes made in the project. Is it test1.txt in which " Hello world " gets pushed

      Are tags used only to trigger a job through runner

Leave us a comment