GitLab CI/CD – Cache

GitLab CI CD – Cache

This article covers the cache keyword in GitLab CI/CD, explaining its role in optimizing pipeline performance by storing and reusing dependencies between jobs and pipeline runs. We will cover the mechanics of caching, including keying strategies, path definitions, and cache policies, along with practical examples and best practices for efficient dependency management to speed up … Read more

GitLab CI/CD – Runner Tags

GitLab CI/CD - Runner Tags

In today’s blog post, we will discuss GitLab runner tags in .gitlab-ci.yml. Specifically, what is a GitLab runner?, Types of GitLab runners, What is a runner tag?, How to use runner tag in .gitlab-ci.yml. So without a further delay let us get started. What is a GitLab Runner? A GitLab Runner is the lightweight, standalone … Read more

GitLab CI/CD – Include

GitLab CI CD Include

This article covers the include keyword in GitLab CI/CD, detailing its purpose in breaking down large .gitlab-ci.yml files into smaller, manageable, and reusable components. We will cover various inclusion methods like local, remote, template, and project includes, along with best practices for structuring your CI/CD configuration to enhance readability, maintainability, and reusability. Understanding the include … Read more

GitLab CI/CD – Needs

GitLab CI/CD - Needs

In GitLab CI/CD, the traditional way pipelines execute is in stages: all jobs within a stage run in parallel, and all jobs in a stage must complete successfully before the next stage begins. While this sequential stage execution works well for many common workflows (build -> test -> deploy), it can become a bottleneck for … Read more

GitLab CI/CD – Artifacts

GitLab CI CD - Artifacts

This article explores GitLab CI/CD artifacts, detailing their definition, purpose in passing data between jobs and stages, common use cases like build outputs and test reports, and important considerations such as expiration policies and best practices for efficient pipeline management. Learn how to use artifacts to in your GitLab CI/CD pipeline. Understanding GitLab CI/CD Artifacts … Read more

GitLab CI/CD – Rules

GitLab CI/CD - Rules

In today’s blog post, we will discuss rules in .gitlab-ci.yml. GitLab CI/CD pipeline rules offer a highly flexible and intuitive way to manage conditional job execution, allowing your pipelines to adapt dynamically based on various factors like branch names, commit messages, file changes, and even the source of the pipeline trigger. Why rules? The Evolution … Read more

GitLab CI/CD – Variables

GitLab CI CD - Variables

In today’s blog post, we will learn variables in GitLab CI/CD pipeline. Specifically, what are variables? How to define variables in .gitlab-ci.yml, different types of variables in GitLab with examples. So without ant further delay, let us get started. What are Variables in GitLab CI/CD? Variables allow you to store and manage dynamic values that … Read more

GitLab CI/CD – Image

GitLab CI CD - Image

In today’s blog post, we will discuss image keyword in .gitlab-ci.yml file. Specifically, what is image keyword in .gitlab-ci.yml?, how to define image with example?, tips and best practices of using image in GitLab CI/CD pipeline. So without any further delay, let us get started. What is the image Keyword? The image keyword in your … Read more

GitLab CI/CD – Stages

GitLab CI CD - Stages

In today’s blog post, we will discuss stages keyword in .gitlab-ci.yml used to group multiple GitLab Ci/CD jobs. Specifically, we will learn what are stages?, How to define a stage in .gitlab-ci.yml with example, How jobs behave inside a stage, Tips and best practices while using stages, and will also cover most frequently asked questions … Read more

GitLab CI/CD – Script

GitLab CI CD - before_script, script, after_script

In today’s blog post, we will learn .gitlab-ci.yml file script keyword. In particular, what is before_script, script, and after_script keywords in .gitlab-ci.yml, how to define before_script, script, and after_script with example, comparison between before_script, script, and after_script blocks. The script block is used to define what action you want to perform in your GitLab CI/CD … Read more