SlideShare a Scribd company logo
Git Strategies for DevOps
By Stakater
Introduction
Source versioning
● core activity in software development.
● Distributed source versioning systems e.g. git
○ agile and collaborative approach
● Enterprise-grade git cloud services
○ Github
○ Gitlab
○ Bitbucket, etc.
Versioning Strategy
Versioning strategy
Semantic Versioning (SemVer)
● Solution for dependency versioning hell
● intuitive way to track and understand versioning
● Useful for external as well as internal dependencies
○ Microservices architecture
● Version syntax: X.Y.Z
○ X: major version number - backwards incompatible features
○ Y: minor version number - backwards compatible features
○ Z: patch number - backwards compatible bug fixes
Branching Strategy
Development workflow
Base branch
● Usually "master"
● Protected branch. No direct commits.
Development branch
● Branch for a feature or fix
● Create Pull Request once changes are ready
Development workflow
Github settings for branch protection
Development workflow
Pull Request
● Notifications
○ Slack, email, etc.
○ On creation, approval and merge.
● Checks for merging
○ Approval/code review by a peer or lead
○ Jenkins CI pipeline
Development workflow
Github Pull Request: pending checks and review
Development workflow
Github Pull Request: CI pipeline check passed
Development workflow
Github Pull Request: checks and review completed
Development workflow
PR merged -> Jenkins release pipeline is triggered
● release version bumped
○ tagged in git
○ updated within files e.g. helm chart yaml, package.json, version
file, etc.
● release pushed to Nexus
Version bump
Version number
● Maintained in .version file
● major/minor version number
bumped by developer in file
● patch number bumped in CD
pipeline
Project Version file
Repository Structure
GitOps
Two separate repos
● Code repo
○ Code of project
○ Built to artifact and/or docker image and/or helm chart
● Config repo
○ Defines deployment configuration
○ Which docker image or helm chart to use
○ Number of replicas
○ Deployment namespace
○ etc.
Contact
Email: hello@stakater.com
Web: http://stakater.com
Opensource: https://github.com/stakater/

More Related Content

What's hot (20)

PPTX
[Public] gerrit concepts and workflows
Yanbin Kong
 
PPTX
Git & GitLab
Gaurav Wable
 
PDF
Gerrit Code Review
Johannes Barop
 
PPTX
Github 101 An Adventurer's Guide To Open Source
Prachitibhukan
 
PPTX
Introduction to git and Github
Wycliff1
 
PDF
Git presentation
Edson Celio
 
PDF
Introducing GitLab
Taisuke Inoue
 
PDF
GitHub
ThomasLai27
 
PPTX
Overview of git
Ravi Ganamukhi
 
PPTX
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
Rueful Robin
 
KEY
Gerrit Workshop
Steffen Gebert
 
PPTX
Using Git and BitBucket
Medhat Dawoud
 
PPTX
Git Lab Introduction
Krunal Doshi
 
PPTX
Exploring Git in Visual Studio 2013
Sunny Sharma
 
PDF
What's New for GitLab CI/CD February 2020
Noa Harel
 
PDF
Getting Started with GitHub
Michael Redlich
 
PPTX
Using Git/Gerrit and Jenkins to Manage the Code Review Processord
Marc Karasek
 
PPTX
Github copilot
ssuser30b5d4
 
PDF
Introducing GitLab (September 2018)
Noa Harel
 
PDF
Git for Beginners
Rick Umali
 
[Public] gerrit concepts and workflows
Yanbin Kong
 
Git & GitLab
Gaurav Wable
 
Gerrit Code Review
Johannes Barop
 
Github 101 An Adventurer's Guide To Open Source
Prachitibhukan
 
Introduction to git and Github
Wycliff1
 
Git presentation
Edson Celio
 
Introducing GitLab
Taisuke Inoue
 
GitHub
ThomasLai27
 
Overview of git
Ravi Ganamukhi
 
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
Rueful Robin
 
Gerrit Workshop
Steffen Gebert
 
Using Git and BitBucket
Medhat Dawoud
 
Git Lab Introduction
Krunal Doshi
 
Exploring Git in Visual Studio 2013
Sunny Sharma
 
What's New for GitLab CI/CD February 2020
Noa Harel
 
Getting Started with GitHub
Michael Redlich
 
Using Git/Gerrit and Jenkins to Manage the Code Review Processord
Marc Karasek
 
Github copilot
ssuser30b5d4
 
Introducing GitLab (September 2018)
Noa Harel
 
Git for Beginners
Rick Umali
 

Similar to Git strategies for DevOps (20)

PDF
BRANCHING MODELS (workshop)
Drupal Portugal
 
PDF
Lets git together
devObjective
 
PDF
Dev objective2015 lets git together
ColdFusionConference
 
PPTX
Ultimate Git Workflow - Seoul 2015
Atlassian ëŒ€í•œëŻŒê”­
 
PPTX
GIT In Detail
Haitham Raik
 
PPTX
Introduction to git
Ram0603
 
PDF
Intro to Gitflow
Ben Speakmon
 
PDF
Introducing GitLab (June 2018)
Noa Harel
 
PDF
Be a Happier Developer with Git / Productive Team #gettinggitright
Shunsuke (Sean) Osawa
 
PDF
Git talk
samtho
 
PPTX
Learn Git - For Beginners and Intermediate levels
Gorav Singal
 
PDF
Introducing GitLab (September 2018)
Noa Harel
 
PDF
SQL Server DevOps Jumpstart
Ori Donner
 
PPTX
Semantic versioning implementation variations
Daniel Rogatchevsky
 
PPTX
Git and GitFlow branching model
Pavlo Hodysh
 
PDF
SFSCON23 - Yuri D'Elia - Automating git for development on large distributed ...
South Tyrol Free Software Conference
 
PPTX
Introduction to Git
Callon Campbell
 
PPTX
Lets git to it
Yoram Michaeli
 
PDF
What's New in GitLab and Software Development Trends
Noa Harel
 
PDF
Developing with versioning and CI/CD
Matteo Di Carlo
 
BRANCHING MODELS (workshop)
Drupal Portugal
 
Lets git together
devObjective
 
Dev objective2015 lets git together
ColdFusionConference
 
Ultimate Git Workflow - Seoul 2015
Atlassian ëŒ€í•œëŻŒê”­
 
GIT In Detail
Haitham Raik
 
Introduction to git
Ram0603
 
Intro to Gitflow
Ben Speakmon
 
Introducing GitLab (June 2018)
Noa Harel
 
Be a Happier Developer with Git / Productive Team #gettinggitright
Shunsuke (Sean) Osawa
 
Git talk
samtho
 
Learn Git - For Beginners and Intermediate levels
Gorav Singal
 
Introducing GitLab (September 2018)
Noa Harel
 
SQL Server DevOps Jumpstart
Ori Donner
 
Semantic versioning implementation variations
Daniel Rogatchevsky
 
Git and GitFlow branching model
Pavlo Hodysh
 
SFSCON23 - Yuri D'Elia - Automating git for development on large distributed ...
South Tyrol Free Software Conference
 
Introduction to Git
Callon Campbell
 
Lets git to it
Yoram Michaeli
 
What's New in GitLab and Software Development Trends
Noa Harel
 
Developing with versioning and CI/CD
Matteo Di Carlo
 
Ad

Recently uploaded (20)

PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
PDF
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
PDF
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PDF
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
PPTX
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
PPTX
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
PPTX
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
PPTX
Tally software_Introduction_Presentation
AditiBansal54083
 
PDF
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
PDF
Revenue streams of the Wazirx clone script.pdf
aaronjeffray
 
PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
PDF
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
PDF
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
PDF
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
PDF
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
PDF
Online Queue Management System for Public Service Offices in Nepal [Focused i...
Rishab Acharya
 
PPTX
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
PDF
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
Tally software_Introduction_Presentation
AditiBansal54083
 
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
Revenue streams of the Wazirx clone script.pdf
aaronjeffray
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
Online Queue Management System for Public Service Offices in Nepal [Focused i...
Rishab Acharya
 
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
Ad

Git strategies for DevOps