You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
3
5
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.
5
10
6
11
In essence continuous delivery means:
7
12
@@ -12,15 +17,42 @@ In essence continuous delivery means:
12
17
- The same artifacts which were built and tested should be deployed
13
18
- That means no rebuilding everything when you are deploying
14
19
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.
16
24
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.
18
29
19
30
## 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.
21
35
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.
23
53
24
54
## Resources
25
55
-[Continuous Delivery on Uncyclopedia](https://en.wikipedia.org/wiki/Continuous_delivery)
26
56
-[Continuous Delivery, the book](http://www.amazon.com/Continuous-Delivery-Deployment-Automation-Addison-Wesley/dp/0321601912)
0 commit comments