Book description
Use GitLab CI/CD pipelines for automating and deploying different steps of your software development lifecycle using best practices and troubleshooting methods.
Key Features
- Reap the power of GitLab CI/CD pipelines at every stage of your software development lifecycle
- Learn how GitLab makes Git easier to use and more powerful when committing and reviewing code
- Cement your understanding using hands-on tutorials and extensive self-assessment exercises
- Purchase of the print or Kindle book includes a free eBook in the PDF format
Book Description
Developers and release engineers understand the high stakes involved in building, packaging, and deploying code correctly. Ensuring that your code is functionally correct, fast, and secure is a time-consuming and complex task. Code implementation, development, and deployment can be conducted efficiently using GitLab CI/CD pipelines.
Automating DevOps with GitLab CI/CD Pipelines begins with the basics of Git and GitLab, showing how to commit and review code. You’ll learn to set up GitLab Runners for executing and autoscaling CI/CD pipelines and creating and configuring pipelines for many software development lifecycle steps. You'll also discover where to find pipeline results in GitLab, and how to interpret those results. Through the course of the book, you’ll become well-equipped with deploying code to different environments, advancing CI/CD pipeline features such as connecting GitLab to a Kubernetes cluster and using GitLab with Terraform, triggering pipelines and improving pipeline performance and using best practices and troubleshooting tips for uncooperative pipelines. In-text examples, use cases, and self-assessments will reinforce the important CI/CD, GitLab, and Git concepts, and help you prepare for interviews and certification exams related to GitLab.
By the end of this book, you'll be able to use GitLab to build CI/CD pipelines that automate all the DevOps steps needed to build and deploy high-quality, secure code.
What you will learn
- Gain insights into the essentials of Git, GitLab, and DevOps
- Understand how to create, view, and run GitLab CI/CD pipelines
- Explore how to verify, secure, and deploy code with GitLab CI/CD pipelines
- Configure and use GitLab Runners to execute CI/CD pipelines
- Explore advanced GitLab CI/CD pipeline features like DAGs and conditional logic
- Follow best practices and troubleshooting methods of GitLab CI/CD pipelines
- Implement end-to-end software development lifecycle workflows using examples
Who this book is for
This book is for DevOps/DevSecOps engineers, application developers, release engineers, quality assurance engineers, security engineers, SREs, and sysadmins looking to implement fast, secure and automated software development lifecycle tasks using continuous integration and continuous delivery (CI/CD) pipelines in GitLab. Basic knowledge of major stages of the software development life cycle and DevOps processes will be helpful.
Table of contents
- Automating DevOps with GitLab CI/CD Pipelines
- Contributors
- About the authors
- About the reviewers
- Preface
- Part 1 Getting Started with DevOps, Git, and GitLab
- Chapter 1: Understanding Life Before DevOps
- Chapter 2: Practicing Basic Git Commands
- Chapter 3: Understanding GitLab Components
- Chapter 4: Understanding GitLab’s CI/CD Pipeline Structure
- Part 2 Automating DevOps Stages with GitLab CI/CD Pipelines
- Chapter 5: Installing and Configuring GitLab Runners
- Chapter 6: Verifying Your Code
-
Chapter 7: Securing Your Code
- Technical requirements
- Understanding GitLab’s security scanning strategy
- Using SAST to scan your source code for vulnerabilities
- Using Secret Detection to find private information in your repository
- Using DAST to find vulnerabilities in web applications
- Using Dependency Scanning to find vulnerabilities in dependencies
- Using Container Scanning to find vulnerabilities in Docker images
- Using License Compliance to manage licenses of dependencies
- Using IaC Scanning to find problems in infrastructure configuration files
- Understanding the different types of security reports
- Managing security vulnerabilities
- Integrating outside security scanners
- Summary
-
Chapter 8: Packaging and Deploying Code
- Technical requirements
- Storing code in GitLab’s package registry for later re-use
- Storing code in GitLab’s container and package registries for later deployment
- Deploying to different environments using GitLab Flow
- Deploying to a review app for testing
- Deploying to real-world production environments
- Deploying to a Kubernetes cluster
- Summary
- Part 3 Next Steps for Improving Your Applications with GitLab
-
Chapter 9: Enhancing the Speed and Maintainability of CI/CD Pipelines
- Accelerating pipelines with directed acyclic graphs and parent-child architecture
- Building code for multiple architectures
- When and how to leverage caching or artifacts
- Reducing repeated configuration code with anchors and extensions
- Improving maintainability by combining multiple pipelines and leveraging parent-child pipelines
- Securing and accelerating jobs with purpose-built containers
- Summary
- Chapter 10: Extending the Reach of CI/CD Pipelines
- Chapter 11: End-to-End Example
- Chapter 12: Troubleshooting and the Road Ahead with GitLab
- Index
- Other Books You May Enjoy
Product information
- Title: Automating DevOps with GitLab CI/CD Pipelines
- Author(s):
- Release date: February 2023
- Publisher(s): Packt Publishing
- ISBN: 9781803233000
You might also like
video
DevOps Complete Course
This DevOps course provides a step-by-step journey through the essential tools and practices of modern software …
video
Getting Started with Kubernetes LiveLessons, 2nd Edition
6+ Hours of Video Instruction An updated edition of this video title is available. Please go …
book
Kubernetes: Up and Running, 3rd Edition
This third edition comes with a dedicated playlist of interactive Katacoda labs mapped to each section …
video
Kubernetes for the Absolute Beginners - Hands-On
Starting from the fundamental concept of containers, the course gradually unfolds into a comprehensive guide on …