File tree Expand file tree Collapse file tree 4 files changed +42
-8
lines changed Expand file tree Collapse file tree 4 files changed +42
-8
lines changed Original file line number Diff line number Diff line change 1
- # !/usr/bin/pwsh
1
+ # !/usr/bin/env pwsh
2
2
<#
3
3
. PARAMETER Stage
4
4
The build stage to execute.
Original file line number Diff line number Diff line change
1
+ ---
2
+ Order : 50
3
+ Title : Docker
4
+ Description : |
5
+ Use GitVersion through one of its many published Docker containers.
6
+ ---
7
+
8
+ GitVersion can be used through one of its many published Docker
9
+ containers. The list of available containers can be found on
10
+ [ Docker Hub] [ docker-hub ] . Once you've found the image you want to use,
11
+ you can run it like this:
12
+
13
+ ``` shell
14
+ docker run --rm --volume " $( pwd) :/repo" gittools/gitversion:6.0.0-fedora.36-6.0 /repo
15
+ ```
16
+
17
+ The above command will run GitVersion with the current directory
18
+ mapped to ` /repo ` inside the container (the ` --volume "$(pwd):/repo" `
19
+ part). The ` /repo ` directory is then passed in as the argument
20
+ GitVersion should use to calculate the version.
21
+
22
+ The ` --rm ` flag will remove the container after it has finished
23
+ running.
24
+
25
+ [ Explore GitVersion on Docker Hub] [ docker-hub ] {.btn .btn-primary}
26
+
27
+ [ docker-hub ] : https://hub.docker.com/r/gittools/gitversion
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ patch releases, it's a useful option to some.
15
15
16
16
:::{.alert .alert-warning}
17
17
** Warning**
18
-
19
- We are not semantically versioning this library and it should be considered
20
- unstable .
18
+ The library API is not stable and does not follow the semantic versioning
19
+ of the GitVersion tool. A patch release of the tool may break the library
20
+ and we will refactor and change the library API without notice .
21
21
:::
22
22
23
23
<a href =" /api " class =" btn btn-primary " >Explore the GitVersion library API</a >
Original file line number Diff line number Diff line change @@ -17,28 +17,35 @@ expected.
17
17
18
18
## Serving the documentation locally
19
19
20
- To serve up the documentation locally, you need to run the script
20
+ To serve up the documentation locally, you need to run the following
21
+ commands:
21
22
22
23
``` shell
24
+ ./build.ps1 -Stage build -Target PrepareBuild
25
+ ./build.ps1 -Stage build -Target Build
23
26
./build.ps1 -Stage docs -Target PreviewDocs
24
27
```
25
28
26
29
### On Windows
27
30
28
- On Windows, you need to run the following build command in a PowerShell
31
+ On Windows, you need to run the following commands in a PowerShell
29
32
terminal:
30
33
31
34
``` shell
35
+ ./build.ps1 -Stage build -Target PrepareBuild
36
+ ./build.ps1 -Stage build -Target Build
32
37
./build.ps1 -Stage docs -Target PreviewDocs
33
38
```
34
39
35
40
### On Unix
36
41
37
42
First you need to [ install PowerShell on macOS] [ ps-mac ] or [ Linux] [ ps-linux ] ,
38
- then execute the following command :
43
+ then execute the following commands :
39
44
40
45
``` shell
41
- pwsh ./build.ps1 -Stage docs -Target PreviewDocs
46
+ ./build.ps1 -Stage build -Target PrepareBuild
47
+ ./build.ps1 -Stage build -Target Build
48
+ ./build.ps1 -Stage docs -Target PreviewDocs
42
49
```
43
50
44
51
After pressing enter, the documentation will be generated and then served under
You can’t perform that action at this time.
0 commit comments