Skip to content

Commit 91f8a9a

Browse files
committed
Moved content from versioing-mode to continuous-deployment to avoid duplication.
1 parent 1a7f9da commit 91f8a9a

File tree

2 files changed

+29
-18
lines changed

2 files changed

+29
-18
lines changed
Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
# Continuous Deployment
2-
Continuous deployment is the process of checking into master, running all the tests and if everything goes green it is automatically pushed to production.
2+
Continuous Deployment is the process of checking into master, running all the
3+
tests and if everything goes green it is automatically pushed to production.
34

4-
By default GitVersion is *not* setup to do this. The good news is in v3 of GitVersion this behavior is configurable!
5+
A good case for Continuous Deployment is when using Octopus deploy, as you
6+
cannot publish the same version of a package into the same feed.
57

6-
The default behavior for v3 and how v1 & 2 worked was that the version only incremented after a tag, which signified a release. In v3 you can simply switch the default mode in the [configuration](../configuration.md) from `continuous-delivery` to `continuous-deployment` and the version will then increment each commit, giving you the features of GitVersion with continuous deployment.
8+
For this mode we follow the logic in [this blog post by Xavier Decoster][blog]
9+
on the issues of incrementing automatically.
10+
11+
As such we force a pre-release tag on all branches, this is fine for
12+
applications but can cause problems for libraries. As such this mode may or may
13+
not work for you, which leads us into a new mode in v4 of GitVersion:
14+
[Mainline Development](mainline-development.md).
15+
16+
By default GitVersion is *not* setup to do Continuous Deployment versioning.
17+
The good news is in v3 of GitVersion this behavior is
18+
[configurable](../configuration.md)!
19+
20+
The default behavior for v3 and how v1 & 2 worked was that the version only
21+
incremented after a tag, which signified a release. In v3 you can simply switch
22+
the default mode in the [configuration](../configuration.md) from
23+
`continuous-delivery` to `continuous-deployment` and the version will then
24+
increment each commit, giving you the features of GitVersion with continuous
25+
deployment.
26+
27+
[blog]: http://www.xavierdecoster.com/semantic-versioning-auto-incremented-nuget-package-versions

docs/reference/versioning-mode.md

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,10 @@ GitVersion has multiple modes to fit different different ways of working.
66
this mode, GitVersion calculates the next version and will use that until that
77
is released.
88

9-
## Continuous deployment
10-
Sometimes you just want the version to keep changing and
11-
[continuously deploy](/reference/continuous-deployment). A good case for this is
12-
when using Octopus deploy, as you cannot publish the same version of a package
13-
into the same feed.
14-
15-
For this mode we followed the logic in [this blog post by Xavier Decoster][blog]
16-
on the issues of incrementing automatically.
17-
18-
As such we force a pre-release tag on all branches, this is fine for
19-
applications but can cause problems for libraries. As such this mode may or may
20-
not work for you, which leads us into a new mode in v4. Mainline development.
9+
## Continuous Deployment
10+
Sometimes you just want the version to keep changing and deploy continuously.
11+
In this case, [Continuous Deployment](/reference/continuous-deployment) is a
12+
good mode to operate GitVersion by.
2113

2214
## Mainline development
2315
[Mainline development](/reference/mainline-development) works more like the
@@ -48,6 +40,4 @@ Here is an example of what mainline development looks like:
4840
intermitently (maybe for minor or major releases) because then GitVersion
4941
will start the version calculation from that point. Much like a snapshot in an
5042
event sourced system. We will probably add in warnings to tag when things are
51-
slowing down.
52-
53-
[blog]: http://www.xavierdecoster.com/semantic-versioning-auto-incremented-nuget-package-versions
43+
slowing down.

0 commit comments

Comments
 (0)