|
1 | 1 | # 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. |
3 | 4 |
|
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. |
5 | 7 |
|
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 |
0 commit comments