How to trigger a Gitlab Pipeline on Merge? | Trigger Pipeline Using Rules | GitLab Tutorial

Опубликовано: 08 Октябрь 2024
на канале: Lian
2,979
16

We're going to talk about, how to trigger a GitLab pipeline when we merge our code in two ways.

Gitlab Merge triggers pipeline jobs. Pipeline rules is used by Merge.

There are three main ideas we'll cover today.

1. Use GitLab built-in Value Trigger Pipeline:

The built-in value is CI_PIPELINE_SOURCE. and how to make it work differently.

2. Benefit Merged Trigger Build:

We'll discuss the advantages of triggering a pipeline upon merging.

This is like having a safety net for our code changes.

It ensures that our code doesn'tbreakn what's already working.

3. Hands-on Demos:

I'll walk you through the steps using CI_PIPELINE_SOURCE in job rule and workflow role, so you can see exactly how this works in action.


👉🏼 Video content MD file: https://gitlab.com/lian.duan.training...

👉🏼 Pipeline files: https://gitlab.com/lian.duan.training...
------------------------------------------------------------------------------------

🧡 Subscribe to show your support! https://bit.ly/3hrhOmW
------------------------------------------------------------------------------------
⏰ T I M E S T A M P S ⏰
00:00 🏁 Start
01:02 🚩Use GitLab Built-in Value Trigger Pipeline
02:45 🎖️Benefit Merged Trigger Build
02:59 👋Hands-on Demos-Prerequisites
03:33 👋Hands-on Demos-Add Merge Rule into Jobs
05:18 👋Hands-on Demos-Add Merge Rule into Workflow
07:06 📝 Summary
------------------------------------------------------------------------------------



👉🏼Quick Share CI/CD Tips:
   • Quick Share CI/CD Tips  

Also, if you're new to Docker, Helm 3, or K8S, check out my guides below:

👉🏼Helm 3 Introduction and Installation
   • Helm 3 Introduction and Installation  

👉🏼Helm 3 Deep Dive
   • Helm 3 Deep Dive  

👉🏼Docker Tutorial for Beginners Step by Step
   • Docker Tutorial for Beginners Step by...  

👉🏼Docker Compose Tutorial
   • Docker Compose Tutorial  

👉🏼Install Minikube in Windows 10 via Docker Desktop
   • Install Minikube in Windows 10 via Do...  

👉🏼Kubernetes Minikube
   • Minikube  

👉🏼Kubernetes Core Concepts and Demo
   • Kubernetes Core Concepts and Demo  

👉🏼Kubernetes Advance and Demo
   • Kubernetes Adavance and Demo  

👋-----------------------------------------------------------------------------------
Easy Connect:
🏢 https://bit.ly/3tN3DeI
🐦 https://bit.ly/3LF2q1Z