I have been using a technique to set the build version on my CI (continuous integration) system, Travis CI, based on Git tags and semantic versioning (SemVer). In this post, I want to share this with you and give you an implementation of that in Bash.
Bash (1)

Versioning Software Builds Based on Git Tags and Semantic Versioning (SemVer)

Hey, I'm Tugberk ๐
Coder ๐จ๐ปโ๐ป, Speaker ๐ฃ, Author ๐, ex-Microsoft MVP ๐ธ, Blogger ๐ป, Software Engineering at Deliveroo ๐, F1 fan ๐, Loves travelling ๐ซ
I live in London, UK ๐ก
Tags
ASP.Net
101
.NET
75
ASP.NET Web API
49
ASP.NET MVC
42
C#
36
Geek Talks
30
SignalR
16
ASP.NET 5
16
Tips
14
HTTP
11
Visual Studio
11
async
11
Tourism
10
Windows Azure
10
TPL
9
OWIN
8
Architecture
8
ASP.NET vNext
8
Git
7
JQuery
7
Katana
7
Microsoft
6
MS SQL
6
DLM
6
NuGet
6
Deployment
6
JavaScript
6
PowerShell
6
MongoDB
6
Docker
5
Microsoft Azure
5
DbContext
5
Razor
5
Unit Testing
5
Redis
5
Entity Framework
5
Software Development
5
IIS
4
Hosting
4
UNWTO
4
Elasticsearch
4
GitHub
4
SQL Server
4
Data Structures
4
ASP.NET Core
4
Algorithms
4
Continuous Delivery
4
.NET Core
4
IT Stuff
4
Security
3
Go
3
Golang
3
Caching
3
Polyglot Persistance
3
Azure Search
2
nodejs
2
Random
2
Facts & Figures
2
Distributed Systems
2
SQL Release
2
Linux
2
Continuous Integration
2
Assignments
2
Software Engineer
2
Databases
2
WCF Web API
2
Aspect Oriented Programming
2
Deployments
2
Blogging
2
SemVer
2
Autofac
2
Code Review
2
gulp
2
OAuth
2
PostSharp
2
RavenDB
2
AWS
1
MvcScaffolding
1
Roslyn
1
Messaging
1
Windows Server AppFabric
1
Microsoft Office
1
UX
1
Business
1
Projects
1
Microsoft SQL Server
1
NGINX
1
Azure Storage
1
Time Saviour
1
Software
1
Visual Basic
1
Azure
1
TV Series
1
Congress & Convention Tourism
1
Kafka
1
Windows 8
1
Tech Guys
1
Graph
1
Go Slices
1
eCommerce
1
Blob Storage
1
Excel
1
Octopus Deploy
1
Neo4j
1
Bash
1
Career
1
Docker Compose
1
Sharding
1
Redux
1
Web
1
Search
1
Lucene.NET
1
Tourism Business
1
Windows Live Writer
1
Travis CI
1
Programming
1
Azure Web Apps
1
Identity
1
SQL Injection
1
Concurrency
1
TourismGeek
1
Dexter
1
MVP
1
Continious Delivery
1
Scaling
1
Web Application
1
React
1
xUnit
1
tugberkugurlu.com
1
Web.Config
1