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
Copy file name to clipboardExpand all lines: docs/input/docs/learn/branching-strategies/gitflow/examples.md
+57-45Lines changed: 57 additions & 45 deletions
Original file line number
Diff line number
Diff line change
@@ -6,61 +6,79 @@ RedirectFrom:
6
6
- docs/git-branching-strategies/gitflow-examples
7
7
---
8
8
9
-
These examples are using the _default_ configuration with GitVersion. Which is
10
-
[continuous deployment](/docs/reference/modes/continuous-deployment) mode for
11
-
`develop` and [continuous delivery](/docs/reference/modes/continuous-delivery) mode
12
-
for all other branches.
13
-
14
-
This default configuration allows you to publish CI builds from develop to a CI
15
-
MyGet feed, or another CI feed. Then all other branches are manually released
16
-
then tagged. Read more about this at [version increments](/docs/reference/version-increments).
9
+
These examples are illustrating the usage of the supported `GitFlow` workflow in GitVersion.
10
+
To enable this workflow, the build-in template [GitFlow/v1](/docs/workflows/GitFlow/v1.json) needs to be referenced in the configuration as following:
11
+
```yaml
12
+
workflow: GitFlow/v1
13
+
mode: ContinuousDelivery
14
+
```
15
+
16
+
Where
17
+
the [continuous deployment](/docs/reference/modes/continuous-deployment) mode for no branches,
18
+
the [continuous delivery](/docs/reference/modes/continuous-delivery) mode for `main`, `support` and `develop` branches and
19
+
the [manual deployment](/docs/reference/modes/manual-deployment) mode for `release`, `feature`, `hotfix` and `unknown` branches
20
+
are specified.
21
+
22
+
This configuration allows you to publish CI (Continuous Integration) builds from `main`, `support` and `develop` branches to an artifact repository.
23
+
All other branches are manually published. Read more about this at [version increments](/docs/reference/version-increments).
24
+
25
+
__Notice:__ The _continuous delivery_ mode has been used for the `main` and the `support` branch in this examples (specified as a fallback on the root configuration layer)
26
+
to illustrate how the version increments are applying. In production context the _continuous deployment_ mode might be a better option when e.g.
27
+
the releasing process is automated or the commits are tagged by the pipeline automatically.
17
28
18
29
## Feature Branches
19
30
20
-
Feature branches will take the feature branch name and use that as the
21
-
pre-release tag.
31
+
Feature branches can be used in the `GitFlow` workflow to implement a feature in an isolated environement. Feature branches will take the feature branch name and use that
32
+
as the pre-release label. Will be created from `develop`, `release`, `main`, `support` or `hotfix` branches.
0 commit comments