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