0% found this document useful (0 votes)
76 views9 pages

GitLab Setup and CI/CD Guide

The document provides a step-by-step guide for installing GitLab, creating a project, and setting up CI/CD pipelines. It outlines the process of signing up, initializing a repository, and adding files to a project. Additionally, it explains how to define CI/CD pipelines using a .gitlab-ci.yml file to automate building, testing, and deploying applications.

Uploaded by

nlr.reddy135
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
76 views9 pages

GitLab Setup and CI/CD Guide

The document provides a step-by-step guide for installing GitLab, creating a project, and setting up CI/CD pipelines. It outlines the process of signing up, initializing a repository, and adding files to a project. Additionally, it explains how to define CI/CD pipelines using a .gitlab-ci.yml file to automate building, testing, and deploying applications.

Uploaded by

nlr.reddy135
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Extra program

Exp 1. Install GitLab

GitLab isn't simply a Git repository manager; it's a complete DevOps


platform that enables development teams to cooperate productively,
automate repetitive tasks, and deliver software quicker and with better
quality, whether you're a little startup, an enormous enterprise, or an
open-source project, GitLab gives the tools and infrastructure expected
to deal with the start to finish software development process really.

Step-by-Step Guide
1. Sign Up or Install GitLab
 You can sign up for GitLab.com, a hosted version of GitLab, or
install GitLab on your own infrastructure using the installation
guide.
 Now give username and first name, last name and provide email
and set password. click on register
 Here enter verification code which email id given to gitlab, for
that respected email receive a verification code.

 When verification is complete then appear a welcome page, In


this welcome page we need to provide role and I'm signing up
for gitlab because choose from dropdown box, In dropdown box
they have a multiple options choose any depends on your
purpose.

 Here we see dashboard of gitlab.


Exp 2. Create a Project

 After signing in, create a new project by navigating to the


dashboard and clicking on "New Project."

 Choose create blank project.


 Choose a project name, visibility level, and other settings.
 Initialize Repository: If starting from scratch, initialize the
repository with a README file. Otherwise, push an existing
repository to GitLab.

 Here we see our new project was created.

 Now add files to our new project. Choose new project or Upload
file or New directory
 Here add script into the file and click on commit changes.

 Here we see successfully added a file.


Output: Pipeline

Exp 3. Set Up CI/CD Pipelines


Define CI/CD pipelines by creating a .gitlab-ci.yml file in your project's
repository. Specify stages, jobs, and scripts for building, testing, and
deploying your application.

Here is the example script to run CI/CD Pipeline

When we write in .gitlab-ci.yml it's automatically start a build, test and


deploying
Run Tests and Deploy: GitLab automatically runs CI/CD pipelines upon
new commits or merge requests. Monitor pipeline execution, review test
results, and deploy changes to staging or production environments.
In below figure shows that pipeline run successfully.

Final Output

You might also like