GitLab Beginner Tutorial 7 | GitLab CI/CD Getting Started
all FREE Courses – https://automationstepbystep.com/online-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++
demo_job_1:
tags:
– ci
script:
– echo Hello World
http://www.yamllint.com/
Step 2: Commit and push file to gitlab repo
Step 3: Create GitLab runner for the project
Video – https://www.youtube.com/watch?v=R8rru9nmZ40
Step 4: Start the runner
Step 5: Make any change in the project > commit > push
References:
https://gitlab.com/help/ci/quick_start/README
https://docs.gitlab.com/ee/ci/
https://docs.gitlab.com/ee/ci/yaml/
https://docs.gitlab.com/ee/ci/yaml/
https://docs.gitlab.com/runner/install/windows.html
GitHub – https://github.com/Raghav-Pal/
Udemy – https://www.udemy.com/user/raghav-pal-3/
Training by Raghav at your venue – raghav.qna@gmail.com
Training schedule – https://automationstepbystep.com/trainings-2/
———— UI TESTING ————
Selenium Beginners – https://bit.ly/2MGRS8K
Selenium Java Framework from Scratch – https://bit.ly/2N9xvR6
Selenium Python – https://bit.ly/2oyMp5x
Selenium Tips – https://bit.ly/2owxc50
Selenium Builder – https://bit.ly/2MKNtlq
Katalon Studio – https://bit.ly/2wARFdi
Robot Framework with RIDE- https://bit.ly/2Px6Ue9
Robot Framework with Eclipse – http://bit.ly/2N8DZxb
Protractor – http://bit.ly/2KtqVkU
———— API TESTING ————
Web Services (API) – https://bit.ly/2MGafL7
SoapUI – https://bit.ly/2MGahmd
Postman – https://bit.ly/2wz8LrW
General – https://bit.ly/2PYdwmV
Katalon Studio API Testing – https://bit.ly/2BwuCTN
———— MOBILE TESTING ————
Appium – https://bit.ly/2ZHFSGX
Mobile Playlist – https://bit.ly/2PxpeUv
———— CI | CD | DEVOPS ————
Jenkins Beginner – https://bit.ly/2MIn8EC
Jenkins Tips & Trick – https://bit.ly/2LRt6xC
Docker – https://bit.ly/2MInnzx
———— VERSION CONTROL SYSTEM ————
Git & GitHub – https://bit.ly/2Q1pagY
———— PERFORMANCE TESTING ————
JMeter Beginner – https://bit.ly/2oBbtIU
JMeter Intermediate – https://bit.ly/2oziNVB
JMeter Advanced – https://bit.ly/2Q22Y6a
JMeter Tips & Tricks – https://bit.ly/2NOfWD2
Performance Testing – https://bit.ly/2wEXbLS
———— PROGRAMMING ————
Java Beginners – https://bit.ly/2PVUcXs
Java Tips & Tricks – https://bit.ly/2CdcDnJ
GROOVY – https://bit.ly/2FvWV5C
JAVASCRIPT – http://bit.ly/2KJDZ8o
———— IDE ————
Visual Studio Code – https://bit.ly/2V15yvt
———— MAVEN ————
Maven – https://bit.ly/2NJdDRS
———— OTHERS ————
Redis- https://bit.ly/2N9jyCG
Misc – https://bit.ly/2Q2q5xQ
Tools & Tips – https://bit.ly/2oBfwoR
QnA Friday- https://bit.ly/2NgwGpw
Sunday Special – https://bit.ly/2wB23BO
Ask Raghav – https://bit.ly/2CoJGWf
Interviews – https://bit.ly/2NIPPxk
All Playlists – https://bit.ly/2LSiezA
Website – https://automationstepbystep.com/
LifeCharger – http://lifecharger.org/
Udemy Courses – https://www.udemy.com/user/raghav-pal-3/
Facebook – https://www.facebook.com/automationstepbystep
Twitter – https://twitter.com/automationsbs
Youtube – http://youtube.com/automationstepbystep
Instagram – https://www.instagram.com/automationstepbystep/
You can support my mission for education by sharing this knowledge and helping as many people as you can
Never Stop Learning
Raghav
source
Leave us a comment Cancel reply
COMMON QUESTIONS
Categories
- Agile Coach
- ARTIFICIAL INTELLIGENCE
- Block chain
- Business Analyst BA
- DATA science
- Development
- Devops Automation
- Dotnet
- Education
- Free Job training and assistance
- Information
- Infrastructure automation
- Interview questions
- JAVA
- jobs
- Learn
- Machine learning
- Python Automation
- QA Automation
- RPA Automation
- SAP crm
- Scrum master Agile
- Skill
- UI Design
- Uncategorized
30 Comments
PianoStars
May 06, 2022 04:00 amPlease explain one OS at a time
thomas selwyn
May 06, 2022 04:00 amDoes GITLAB started validating user account by asking CC details ? is it true
Prajkta Deshpande
May 06, 2022 04:00 amHello,
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
Amanuel Tesfu
May 06, 2022 04:00 amHey 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???
Kiran K
May 06, 2022 04:00 amThis session makes my job easy as We are using gitlab ci in the current environment….Thank you so much.
k subrahmanyam
May 06, 2022 04:00 amfinally done as you said in ur videos ,can u show how to dockerize to get artifats
Core Dreams Innovations
May 06, 2022 04:00 amGitLab-Runner: There has been a runner system failure, Job failed (system failure), prepare the environment: failed to start the process, exec: “pwsh”
Vishnuja Sivadas
May 06, 2022 04:00 amGreat Videos. Thank you so much for this.
vishal sharma
May 06, 2022 04:00 amGreat sir❤️
k subrahmanyam
May 06, 2022 04:00 amIn your video's volume is very low.
snow canace
May 06, 2022 04:00 amHi 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
funny animal world
May 06, 2022 04:00 am20: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 😀
nataraju gokeda
May 06, 2022 04:00 amHi 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
Sandeep Gongiti
May 06, 2022 04:00 amHi Raghav, Can you Please do a Video on Multi project Pipeline and Multi Branch Pipeline In Gitlab?
Amit Pawar
May 06, 2022 04:00 amNice video Sir.. It helps a lot… Keep up the great work…
Paresh Marathe
May 06, 2022 04:00 amHello 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
Sandeep Gongiti
May 06, 2022 04:00 amHi 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
Sutesh Dwivedi
May 06, 2022 04:00 amWhile 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
Chris
May 06, 2022 04:00 amExcellent set of videos on GitLab 👍🏽 no fluff, no marketing and to the point. just right for all techies !
Santhi Nair
May 06, 2022 04:00 amCould you tell us the software you use for screen capture, zoom in & out and highlighting.
Santiljano Malaj
May 06, 2022 04:00 amContinue with the hard work very simple explanation and resourcefulness.Wish you the best
Marantis Games
May 06, 2022 04:00 amVery nice tutorial! All 7 videos. Thank you very much!👋🤓
richuk69
May 06, 2022 04:00 amExcellent tutorial for beginners I'm in a better state of knowledge than I was 2 days ago thanks so much
Ferris
May 06, 2022 04:00 amThis 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!
Vibhor Tripathi
May 06, 2022 04:00 amVery 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.
Venkataramana Madugula
May 06, 2022 04:00 amWonderful introduction series of videos.
pooranimuthusamy
May 06, 2022 04:00 amgreat 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!!!!
Don Dang
May 06, 2022 04:00 amI'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.
yogesh k
May 06, 2022 04:00 ammy pipeline job failed saying user not verified. May i know the resolution
Chandu Bharath
May 06, 2022 04:00 amFirst 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