- Lab
- Core Tech

Setting Up a CI/CD Pipeline
In this lab, you’ll practice how to use and set up GitLab to manage your code. When you’re finished, you’ll have set up a GitLab repository and implemented GitLab CI with stages to build, unit test, and deploy a web application.

Path Info
Table of Contents
-
Challenge
Get Started in the Lab Environment
Here are the initial instructions and explanation of the lab environment. Read this while your environment is busy creating itself from nothing. Yes, this violates physics; we know. How fun!
-
Challenge
Verify the Lab Environment
To start, you will verify that GitLab, GitLab-runner, Docker, and Terraform are present in the lab environment.
-
Challenge
Set up and Configure Gitlab
You will verify access to the GitLab UI using the provided account, create a repository for the lab with a main branch, create your ssh key, and attach it to your GitLab account to allow pushing and pulling to and from the repository that you created.
-
Challenge
Implement a Unit Testing Stage
In this challenge, you will create a gitlab-ci.yaml file which will be the basis for the CI/CD pipeline. You will create a unit testing stage to test the application code that you pushed to the repository.
-
Challenge
Implement a Deploy Stage
To finish the lab, you will create a deployment stage in the gitlab-ci.yaml file to deploy the artifact (container) that you created and pushed to the artifact repository.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.