GITLAB CI/CD Pipeline for Beginners Using a YMLFile


Here, we will learn the basics of executing a YML file as we commit code.
For the basics, we are executing/building our Dotnet Core application using a YML file in the GitLab console Environment.
Similarly, we can create a docker image, deploy the application, all themes that we will cover in another post.

For now, we will look at how to configure a GITLAB CI/CD pipeline. The steps are as follows:
  1. Create an Account in GitLab.
  2. Create an Empty Application in GitLab with a file.
  3. Clone this Repository using https in Visual studio (Editor of your choice) with credentials.
  4. Create a web application.
  5. Create .gitlab-ci.yml file for this project.
  6. Push/Commit/Check-in Everything.
  7. CI/CD pipeline will automatically Executes(due to existing Shared runner in use)
You can also create custom Runner for project-specific usage. For more, read here: ( )
This article is mainly for tech guys who are absolute beginners at running GITLAB CI/CD pipeline.
You can get full documentation here:
Create Account in GitLab
Step 1

Step 2
After signing in, you can create New Project, as shown below;
2.c. After you create an empty project, it will finally look like this:
Step 3 - Clone this Repository
3.a Copy the Https Git Url
3.b Connect in Visual Studio like this; Enter GITURL and location of your local folder.
Step 4
Create any Web application here.
Step 5
Create a YML file which should be in the parent folder of your project:
I will attach this YML file below for reference.(
The Folder Structure for your YML file should look like this:
At Local :
At Git :
Step 6 - Push the Code
Step 7 - Check For Pipeline, it can be done like this
7.a. Click > CI/CD > Pipeline
7.b. Run the pipeline here.
You can also check what is running inside the pipeline. It is basically the same as we have written in a YML file.
Click here :
The execution result in the GIT console will look like this:
** For customization or the rest of the runner, you can visit here....