Hamburger Icon
  • Labs icon Lab
  • Core Tech
Google Cloud Platform icon
Labs

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.

Google Cloud Platform icon
Labs

Path Info

Rating
(87 reviews)
Level
Clock icon Beginner
Duration
Clock icon 1h 10m
Published
Clock icon Nov 01, 2024

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. 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!

  2. Challenge

    Verify the Lab Environment

    To start, you will verify that GitLab, GitLab-runner, Docker, and Terraform are present in the lab environment.

  3. 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.

  4. 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.

  5. 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.

Obinna Amalu is a Tech Leader with 20+ years of experience training and being hands-on with technology. He enjoys mentoring and public speaking.

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.