DevOps Best Practices: CI/CD Pipeline Foundations
Intermediate · 35 minutes · 100 points
In this hands-on lab, you will apply core DevOps best practices inside a Linux environment. You will set up a Git repository, write a shell-based build script, implement basic automated testing, and create a simple deployment pipeline using shell scripting. By the end, you will have a working mini CI/CD pipeline that demonstrates the foundational principles of DevOps: version control, automation, testing, and repeatable deployments.
What you’ll learn
- Initialize a Git repository and commit application source code following version control best practices
- Write a reusable shell-based build script that compiles and packages an application artifact
- Implement automated tests that validate application behavior before deployment
- Create a pipeline script that orchestrates build, test, and deploy stages with proper exit-code handling
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 4 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: ubuntu:22.04
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
Topics: devops, ci-cd, shell-scripting, git, automation, testing, deployment, pipelines, best-practices
Create a free account to start this lab.