Skip to content

Commit 1a7f9da

Browse files
committed
Moved info from versioning-mode to continuous-delivery to avoid duplication.
1 parent 59e7b96 commit 1a7f9da

File tree

2 files changed

+39
-17
lines changed

2 files changed

+39
-17
lines changed

docs/reference/continuous-delivery.md

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# Continuous Delivery
2-
Continuous delivery is the practice of having a deployment pipeline. Each stage of the pipeline gets the code going through the pipeline closer to production.
2+
Continuous Delivery is the practice of having a deployment pipeline and is the
3+
default mode in GitVersion. Each stage of the pipeline gets the code going
4+
through the pipeline closer to production.
35

4-
The topic itself is rather large, here we will just focus on the building and creation of *releasable* artifacts. This is only a part of continuous delivery as a whole, with the hard part being the ability to measure the impacts of what you have deployed into production.
6+
The topic itself is rather large, here we will just focus on the building and
7+
creation of *releasable* artifacts. This is only a part of continuous delivery
8+
as a whole, with the hard part being the ability to measure the impacts of what
9+
you have deployed into production.
510

611
In essence continuous delivery means:
712

@@ -12,15 +17,42 @@ In essence continuous delivery means:
1217
- The same artifacts which were built and tested should be deployed
1318
- That means no rebuilding everything when you are deploying
1419

15-
Continuous delivery does not work well with GitFlow. The reason is that you are required to *merge* to master to do a release, triggering a rebuild and a new set of artifacts to go through your pipeline. Depending on how long your pipeline is, this could be a while.
20+
Continuous delivery does not work well with GitFlow. The reason is that you are
21+
required to *merge* to master to do a release, triggering a rebuild and a new
22+
set of artifacts to go through your pipeline. Depending on how long your
23+
pipeline is, this could be a while.
1624

17-
GitHubFlow is a better fit for Continuous delivery, the [mainline development](mainline-development.md) model means that every merged feature branch will be built as a *stable* version and if the build/builds go green then you are free to deploy to production at any time.
25+
GitHubFlow is a better fit for Continuous delivery, the
26+
[mainline development](mainline-development.md) model means that every merged
27+
feature branch will be built as a *stable* version and if the build/builds go
28+
green then you are free to deploy to production at any time.
1829

1930
## How continuous delivery affects GitVersion
20-
The thing about continuous delivery is that there will be *multiple* candidates to deploy to production and it is a human choice to deploy. This means that GitVersion will build **the same semantic version** until that version is deployed.
31+
The thing about continuous delivery is that there will be *multiple* candidates
32+
to deploy to production and it is a human choice to deploy. This means that
33+
GitVersion will build **the same semantic version** until that version is
34+
deployed.
2135

22-
GitVersion assumes Continuous Delivery by default in it's [configuration](../configuration.md), if you want to do [continuous deployment](continuous-deployment.md) then just change the configuration setting.
36+
GitVersion assumes Continuous Delivery by default in its
37+
[configuration](../configuration.md), if you want to do
38+
[continuous deployment](continuous-deployment.md) then just change the
39+
configuration setting.
40+
41+
## Example
42+
In Continuous Delivery, GitVersion calculates the next version and will use that
43+
until it is released. For instance:
44+
45+
- 1.1.0+5
46+
- 1.1.0+6
47+
- 1.1.0+7 <-- This is the artifact we release, tag the commit which created
48+
this version
49+
- 1.1.1+0
50+
51+
Tags are required in this mode to communicate when the release is done as it's
52+
an external manual process.
2353

2454
## Resources
2555
- [Continuous Delivery on Uncyclopedia](https://en.wikipedia.org/wiki/Continuous_delivery)
2656
- [Continuous Delivery, the book](http://www.amazon.com/Continuous-Delivery-Deployment-Automation-Addison-Wesley/dp/0321601912)
57+
58+

docs/reference/versioning-mode.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
11
# Versioning modes
22
GitVersion has multiple modes to fit different different ways of working.
33

4-
54
## Continuous Delivery
65
[Continuous Delivery](/reference/continuous-delivery) is the default mode. In
76
this mode, GitVersion calculates the next version and will use that until that
8-
is released. For instance:
9-
10-
- 1.1.0+5
11-
- 1.1.0+6
12-
- 1.1.0+7 <-- This is the artifact we release, tag the commit which created
13-
this version
14-
- 1.1.1+0
15-
16-
Tags are required in this mode to communicate when the release is done as it's
17-
an external manual process.
7+
is released.
188

199
## Continuous deployment
2010
Sometimes you just want the version to keep changing and

0 commit comments

Comments
 (0)