Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Automating DevOps with GitLab CI/CD Pipelines
  • Table Of Contents Toc
Automating DevOps with GitLab CI/CD Pipelines

Automating DevOps with GitLab CI/CD Pipelines

By : Christopher Cowell, Nicholas Lotz, Chris Timberlake
4.7 (11)
close
close
Automating DevOps with GitLab CI/CD Pipelines

Automating DevOps with GitLab CI/CD Pipelines

4.7 (11)
By: Christopher Cowell, Nicholas Lotz, Chris Timberlake

Overview of this book

Developers and release engineers understand the high stakes of building, packaging, and deploying code efficiently. Ensuring that your code is fast, secure, and functionally correct can be a time-consuming and complex task. GitLab CI/CD pipelines simplify these tasks, enabling automation and seamless deployment. Automating DevOps with GitLab CI/CD Pipelines starts with the fundamentals of Git and GitLab, guiding you through committing and reviewing code. You'll learn how to set up GitLab Runners to execute and autoscale CI/CD pipelines, configure pipelines for different stages of the software development lifecycle, and analyze pipeline results in GitLab. As you progress, you'll gain expertise in deploying code across environments, integrating GitLab with Kubernetes and Terraform, triggering pipelines, and improving pipeline performance. This book also includes troubleshooting techniques, best practices, real-world use cases, and self-assessments to reinforce key CI/CD concepts and help you prepare for GitLab-related interviews and certifications. By the end of this book, you'll have the skills to build and automate CI/CD pipelines in GitLab, streamline DevOps workflows, and deploy high-quality, secure code with confidence.
Table of Contents (18 chapters)
close
close
1
Part 1 Getting Started with DevOps, Git, and GitLab
6
Part 2 Automating DevOps Stages with GitLab CI/CD Pipelines
11
Part 3 Next Steps for Improving Your Applications with GitLab

Securing your code

For this sample use case, you’re going to add four scanners to your pipeline: Static Application Security Testing (SAST), Secret Detection, Dependency Scanning, and License Compliance. You’ll also review how to add a third-party scanner.

Adding SAST to the pipeline

In general, adding a GitLab-provided security scanner to a pipeline is a trivial process. To enable SAST and make sure our Hats for Cats source code doesn’t contain security vulnerabilities, we simply need to include a new template in .gitlab-ci.yml on the add-login-feature branch. Add this line anywhere within the existing include: section, making sure that it’s indented correctly:

    - template: Security/SAST.gitlab-ci.yml

This enables SAST, but we also want to configure it so that it doesn’t scan our automated test file or our fuzz target file. The GitLab documentation tells us which variable to set to accomplish this. Add a new section...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Automating DevOps with GitLab CI/CD Pipelines
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon