Git Branching for Docker Image Promotion across Environments 🚀 - Live Coding Walkthrough

Опубликовано: 05 Октябрь 2024
на канале: Julie Ng
1,955
56

Originally I just wanted to explain why I have git shas in my docker image tags… instead watch me do live debugging and git-fu 🥷 to demo errors to explain fast-forward merges vs merge commits when it comes to promoting code from one environment to another, e.g. from dev to staging.

See real world usage of git revert vs git reset, empty commits, branch deleting, renaming and more.

===== 🧪 Repo Source Code =====

YAML Pipeline Source Code on GitHub:
https://github.com/julie-ng/cloud-arc...

===== 📫 My DevOps Newsletter =====

Sign up for my free email newsletter and email course here
https://jngo.io/devopsirl

===== 🎬 Chapters =====

00:00 Intro & Contents
01:53 My branching strategy
02:25 App demo & environment differences
04:20 Explanation - Why create a merge commit?
04:49 Explanation - Fast-forward commits & git shas in tags
06:00 CLI Demo - Fast-foward vs. merge commits
09:23 Debugging…down the Kubernetes Rabbit hole
11:25 Another git error
14:15 Got the error we wanted to demo 😅
16:16 Undo a release with git revert
20:51 Demo: fast-forward merges and deploy
25:17 Watch Kubernetes self heal